1

Possible Duplicate:
iOS 6 - viewDidUnload migrate to didReceiveMemoryWarning?

In iOS 6.0 viewDidUnload: and other something methods has been deprecated. If I need release some resources like UIWebView or network connection, what method should I use? (provided ARC is included) Thanks.

Community
  • 1
  • 1
Ilya Ilin
  • 2,283
  • 21
  • 27
  • 1
    You might have to use `- (void)didReceiveMemoryWarning`. – iDev Nov 03 '12 at 07:30
  • ACB, how about if this method called when UIViewController is not released (for example simulate memory warn. on simulator). Then I will destroy non-reducing resources, true? How I can release my resources only when UIViewController destroyed and unloaded. – Ilya Ilin Nov 03 '12 at 07:38
  • 1
    Check this http://stackoverflow.com/a/12676743/1730272 – iDev Nov 03 '12 at 08:31
  • I think I figured it out. I set delegate for UIWebView in Interface Builder and not set him to nil in viewDidLoad: and didReceiveMemoryWarning, I think system on low-level released delegate before webView. Thank you! – Ilya Ilin Nov 03 '12 at 09:41
  • Ok, I will add it as an answer so that you can close this. – iDev Nov 03 '12 at 10:18

0 Answers0