Home > DeveloperSection > Forums > ViewController's viewDidUnload method deprecated in iOS 6
monica frank
monica frank

Total Post:10

Posted on    November-24-2015 1:38 AM

 iPhone iPhone  Ios  Objective C 

 1 Reply(s)
 539  View(s)
Rate this:

I was creating an app in iOS 6 and using viewDidUnload method, I saw a warning message that says viewDidUnload method is deprecated in iOS 6.
So, now my question is that if viewDidUnload method is deprecated then which method is used in replacement of that method.
Please help me.

Tarun Kumar

Total Post:214

Posted on    November-24-2015 10:32 PM

For your question's short answer is that according to the iOS 6 viewDidUnload documentation views are no longer purged under the lowMemory conditions so viewDidUnload method is never be called.
So there is no need assign nil of your outlet references. there is another method that is didReceiveMemoryWarning for clearing of caches, releasing of easily recreated model data,etc; So you probably dont require any code for releasing outlet references.

Don't want to miss updates? Please click the below button!

Follow MindStick