VIEWCONTROLLER'S VIEWDIDUNLOAD METHOD DEPRECATED IN IOS 6

monica frank

Total Post:10

Points:70
Posted by  monica frank
 586  View(s)
Ratings:
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.

  1. Tarun Kumar

    Post:214

    Points:1642
    Re: ViewController's viewDidUnload method deprecated in iOS 6

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!