をアプリケーションを終了可能性の重複:
quit app in iOS4iphone:iphoneで
こんにちはiphoneの開発効率向上で初心者です。私はiphone4に対応するiphoneアプリで作業しています。 私は警告表示を見せています。brouwser.its okにナビゲートするとはいですが、私のアプリケーションはbackground.butに入っています。私はそれを終了して、アプリアイコンをクリックして再起動します。
if (alertView.tag==222) {
if (buttonIndex==0) {
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"http://itunes.apple.com/"]];
}
}
また、ホームボタンをクリックしているときにブルググラウンドになります。 私はまた、バックグラウンドから終了する必要がありますアプリをしたい。
exit()についてはどうですか? –
@ダニエルあなたは決して出口を呼び出すべきではありません。 – rckoenes
その他の可能な重複:http://stackoverflow.com/questions/3227736/iphone-avoid-save-state、http://stackoverflow.com/questions/5565730/iphone-app-startup、http://stackoverflow.com/questions/6127560/app-to-the-background、the background-in-the-background、http://stackoverflow.com/questions/4437619/make-app-without-multitasking-support、http://stackoverflow.com/questions/6516519/how-to-restart-a-application-without-going-to-recent-worked-page-when-we -exit-in – Codo