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 -

c - getting error: cannot take the address of an rvalue of type 'int' -

How to merge four videos on one screen with ffmpeg -