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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -