• 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
How are views supposed to reload after being nillified by memory warnings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How are views supposed to reload after being nillified by memory warnings?


  • Subject: How are views supposed to reload after being nillified by memory warnings?
  • From: G S <email@hidden>
  • Date: Tue, 28 Feb 2012 18:10:09 -0800

Hi all.

View controllers that are buried in the navigation stack (or otherwise have
their views obscured) set their views to nil when they receive a memory
warning.  This makes sense temporarily, because the views aren't visible.

But when the overlapping views are dismissed, how is the nillified view
supposed to reload itself?  Currently, ours doesn't, and this leaves a
blank white screen and a permanently disabled app (until the user
force-quits).

I've found that viewWillAppear is not called on the blanked view
controller, as it is when no memory warning has occurred.  So when exactly
are these blanked views supposed to recover?

This view is loaded from a XIB, by the way.

Thanks for any insight!

Gavin
_______________________________________________

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: How are views supposed to reload after being nillified by memory warnings?
      • From: G S <email@hidden>
  • Prev by Date: Re: Question about KVC-compliance and bindings
  • Next by Date: How to: NSTableView redisplay
  • Previous by thread: Re: Question about KVC-compliance and bindings
  • Next by thread: Re: How are views supposed to reload after being nillified by memory warnings?
  • Index(es):
    • Date
    • Thread