Re: Does an iOS app's UI freeze when going into background?
Re: Does an iOS app's UI freeze when going into background?
- Subject: Re: Does an iOS app's UI freeze when going into background?
- From: David Duncan <email@hidden>
- Date: Wed, 21 Sep 2011 12:34:43 -0700
On Sep 21, 2011, at 11:59 AM, Gavin Stokes wrote:
> When our app gets a notification that it's going into the background, it clears the tableview that serves as its primary UI element. However, when the app returns to the foreground, it still briefly contains the items that were supposedly cleared. They remain there for a second after the app resumes, then disappear. This creates an unpolished and jarring UI.
>
> My guess is that iOS stops drawing the UI as soon as the app starts whizzing away into the background, and likewise doesn't resume drawing it immediately after it returns. Does anyone know if that's true? I'm wondering how to prevent this spastic-looking UI.
UIKit takes a snapshot of the view hierarchy as it was when your application goes into the background and uses that when it comes back to the foreground. It remains until your UI has had a chance to redraw itself.
--
David Duncan
_______________________________________________
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