Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-21-2010, 12:56 PM   #1 (permalink)
Roi
Registered Member
 
Join Date: Oct 2009
Posts: 55
Default Quickly exiting and reentering app causes black screens

Hello,

When my app terminates, I release my objects, save the user data and stop all of the ads and analytics activity.

I have noticed that if I exit my app on the device and then quickly enter it again the second I see the app icon again I have a scenario where the appWillTerminate jobs are still running from the last run although I already see the Default.png and maybe even the screen after that I then I simply get a black screen for a second or two.

Is there a way to protect my application from this kind of behavior? I want the user to save his data without any interruptions, and in case he entered the app before it was all over I want him to be able to enter the app without any crash and simply wait. maybe on the Default.png screen.

Did anybody else encounter this kind of behavior? Do you happen to know how to avoid this situation?
Roi is offline   Reply With Quote
Old 03-21-2010, 03:02 PM   #2 (permalink)
Registered Member
 
Join Date: Dec 2008
Location: UK
Posts: 1,886
Default

When your app terminates, it terminates. The methods in applicationWillTerminate cannot carry on.

If your code in app terminates takes too long, then your app is forced to quit. This might explain why the operations aren't completed.
harrytheshark is offline   Reply With Quote
Reply

Bookmarks

Tags
applicationwillterminate, black, save

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 263
16 members and 247 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, jakerocheleau, JasonR, prchn4christ, Rudy, Speed
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:51 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0