• 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: -viewDidUnload not always called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -viewDidUnload not always called?


  • Subject: Re: -viewDidUnload not always called?
  • From: David Rowland <email@hidden>
  • Date: Thu, 13 Oct 2011 22:21:20 -0700

My understanding is this, a diagram I made to visualize the process,

http://drowland.net/iOS Class/View Controller unloading.pdf



On Oct 13, 2011, at 8:02 AM, Fritz Anderson wrote:

> On 12 Oct 2011, at 5:39 PM, Rick Mann wrote:
>
>> I can't tell from the docs for -viewDidUnload if it is not guaranteed to be called when cleaning up. It does say that it's called for low-memory situations, but also says it's called as a counterpart to -viewDidLoad, which is always called when a view controller is created.
>
> The docs say specifically:
>> When a low-memory condition occurs and the current view controller’s views are not needed, the system may opt to remove those views from memory.
>
> It doesn't refer to any other scenario, and given that the recommendation is that -viewDidUnload do many of the same releases (+ plus nil-outs) as would be done in -dealloc, I take it that low-memory (and therefore -viewDidUnload) and deallocation are separate paths.
>
> 	— F
>
> _______________________________________________
>
> 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

_______________________________________________

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: -viewDidUnload not always called?
      • From: Jon Sigman <email@hidden>
References: 
 >-viewDidUnload not always called? (From: Rick Mann <email@hidden>)
 >Re: -viewDidUnload not always called? (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: NSArrayController Update Delay
  • Next by Date: Re: Namespace clash problem
  • Previous by thread: Re: -viewDidUnload not always called?
  • Next by thread: Re: -viewDidUnload not always called?
  • Index(es):
    • Date
    • Thread