exit(0); を使用しても問題ありませんか。このような?
-(void)applicationDidEnterBackground:(UIApplication *)application
{
if (UserDontWantItRunInBackground) {
exit(0);
}
}
Appleはそれを承認しますか?
私の理解では、Apple はあなたの使用exit()
をまったく好まないということです。
確かに、Apple のヒューマン インターフェイス ガイドラインから:
Don’t Quit Programmatically
Never quit an iOS app programmatically because people tend to interpret this as a crash.
私が知る限り、意図したとおりに機能する可能性がありますが、アプリが拒否される可能性が非常に高くなります。