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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -