viewDidUnload no longer called in ios6

前端 未结 3 1121
傲寒
傲寒 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:55

    For the first Question:

    Your ViewController will receive didReceiveMemoryWarning method callback and you can nil out the view & other components in this method

    For Reference Do Check WWDC 2012 video Session on EVOLUTION OF VIEW CONTROLLER, in case you haven't (I Believe they are available only for registered developers, but not sure).

    Answer to your second one.

    [object release]; in dealloc. No need to assign nil to object before releasing.

提交回复
热议问题