iphone - Conditional exit(0); in applicationDidEnterBackground? -


is ok use exit(0); this?

-(void)applicationdidenterbackground:(uiapplication *)application {      if (userdontwantitruninbackground) {         exit(0);      } } 

will apple approve it?

my understanding apple don't use exit() @ all.

indeed, apple's human interface guidelines:

don’t quit programmatically  never quit ios app programmatically because people tend interpret crash.  

as far can tell, although might work intend, there chance app rejected.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -