• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?


  • Subject: Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 13 Apr 2011 17:53:16 -0700

On Wed, 13 Apr 2011 16:42:40 -0700, Chris Parker <email@hidden> said:
>> 2011-04-14 00:03:09.640 CRDev[18309:307] InGameViewController implementation of -viewDidUnload caused the view to be reloaded. This will adversely impact system performance.
>
>The log is trying to help you out; -viewDidUnload is called when the view controller has discarded its view. The log is telling you that an implementation of -viewDidUnload is causing the view to be loaded again.
>
>This can be caused by doing anything which accesses the -view property on the view controller inside the -viewDidUnload implementation.

That's really kind of wonderful.

In my iOS book I talk about discovering that my loadView was being mysteriously called twice, and then (by logging like crazy) realizing that this due to my mentioning the view property in my awakeFromNib. That's how I learned not to do that. :) I really applaud verbose explanatory log messages from the framework such as this. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?
      • From: Martin Linklater <email@hidden>
  • Prev by Date: Re: file done writing?
  • Next by Date: Re: MPMoviePlayerController
  • Previous by thread: Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?
  • Next by thread: Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?
  • Index(es):
    • Date
    • Thread