Re: How are views supposed to reload after being nillified by memory warnings?
Re: How are views supposed to reload after being nillified by memory warnings?
- Subject: Re: How are views supposed to reload after being nillified by memory warnings?
- From: Roland King <email@hidden>
- Date: Fri, 02 Mar 2012 10:04:07 +0800
so keep debugging then.
How do you know the white view is screen-sized and has no superview? Actually a UIView which you can see and yet has no superview is probably just the UIWindow itself.
How about the view which has just been loaded? Does it have a superview? Probably won't at that point, it's only been loaded, not moved into place. Go override the viewWillAppear:/viewDidAppear: methods and see if they get called.
One question, there's no non-standard UIViewController usage here right? ie you have just ONE view controller for each screen, not trying to use more than one on the screen at the same time (with the exception of course of a tab or navigation controller which handles that). Transitions which put the new VCs on the screen are the usual presentModalViewController .. or push methods right? What's showing on the screen when this viewcontroller of yours is getting blown away by a memory warning, and how did that new content get there?
On Mar 2, 2012, at 6:08 AM, G S wrote:
> OK, after our controller's view gets blown away on the memory warning, it
> does appear to be reloaded from the nib when it's time for redisplay. At
> least the IBOutlet members are non-nil in viewDidLoad (I nilled them on
> viewDidUnload).
>
> So it appears that the controller's view is reloaded from the nib, but
> being displayed as a blank white screen. The white view itself is
> screen-sized and has no superview. What the hell?
> _______________________________________________
>
> 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