Questions tagged «ios4»

Apple制造的iPhone / iPad / iPod Touch / Apple TV操作系统家族的2010-2011版本。

12
对ARC下的对象的弱引用(__unsafe_unretained)的NSArray
我需要在NSArray中存储对对象的弱引用,以防止保留周期。我不确定要使用的语法是否正确。这是正确的方法吗? Foo* foo1 = [[Foo alloc] init]; Foo* foo2 = [[Foo alloc] init]; __unsafe_unretained Foo* weakFoo1 = foo1; __unsafe_unretained Foo* weakFoo2 = foo2; NSArray* someArray = [NSArray arrayWithObjects:weakFoo1, weakFoo2, nil]; 请注意,我需要支持iOS 4.x,__unsafe_unretained而不是__weak。 编辑(2015-02-18): 对于那些想要使用真实__weak指针(不是__unsafe_unretained)的人,请改用以下问题:在ARC下对弱引用进行归零的集合

20
iPhone UINavigation问题-嵌套的推送动画可能会导致导航栏损坏
我不断收到以下错误: 2011-04-02 14:55:23.350 AppName[42430:207] nested push animation can result in corrupted navigation bar 2011-04-02 14:55:23.352 AppName[42430:207] nested push animation can result in corrupted navigation bar 2011-04-02 14:55:23.729 AppName[42430:207] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted. 2011-04-02 14:55:23.729 AppName[42430:207] Finishing up a …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.