Possible en double:
quit app in iOS4iphone: mettre fin à l'application dans l'iphone
Salut, je suis débutant dans developement iphone. Je travaille sur une application iphone copatible pour iphone4. Je montre une vue d'alerte et sur la sélection d'un oui naviguant à brouwser.its ok mais mon application allant en arrière-plan. Mais je veux qu'il soit terminé et devrait être relancé en cliquant sur l'icône de l'application.
if (alertView.tag==222) {
if (buttonIndex==0) {
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"http://itunes.apple.com/"]];
}
}
également il est en bground quand je clique sur le bouton d'accueil. je veux l'application devrait être terminée de fond aussi.
Qu'en est-il de exit()? –
@Daniel vous ne devriez jamais appeler exit. – rckoenes
Autres doublons possibles: http://stackoverflow.com/questions/3227736/iphone-avoid-save-state, http://stackoverflow.com/questions/5565730/iphone-app-startup, http://stackoverflow.com/questions/6127560/how-do-i-tell-ios-that-je-ne-veux-pas-l'app-to-stay-in-the-background, http://stackoverflow.com/questions/4437619/make-app-without-de-multitâche-support, http://stackoverflow.com/questions/6516519/how-to-restart-a-application-without-going-to-recent-worked-page-when-we -exit-en – Codo