viewDidUnload no longer called in ios6

前端 未结 3 1161
傲寒
傲寒 2021-02-01 19:38

I just installed the new version of Xcode/ios6. viewDidUnload is now depreciated.

In the apple doc,

viewDidUnload [...] Deprecated in iOS 6.0. Vi

3条回答
  •  我在风中等你
    2021-02-01 19:40

    and second one: What is the new recommended way to release an IBOutlet property ? In dealloc method ?

    What is the "old" recommended way? You must always release retained instance variables in dealloc; it has always been this way and continues to be this way.

    It was just that in viewDidUnload (which is only called for low memory) you could also set your properties to nil.

提交回复
热议问题