I need to stop in some situation an application from remaining in background:
how to stop MPMoviePlayerViewController from downloading video if the app is in background
I don’t want to disable the multitasking, but in some situation I need to close the app
exit(0) works perfectly, but is this approvable by Apple?
exit(0) doesn’t create any user-experience problems, because it happens in background and the user doesn’t see anything.
Does anyone know any other alternatives?
Thanks in Advance!
Looks perfectly acceptable to me. Not much difference between exit (0) and the kill -KILL of a memory warning. Provided you restore the UI to a reasonably consistent state after startup.
Of course, AppStore police might have different opinions…