Possible Duplicate:
quit app in iOS4
hi i am beginner in iphone developement. i am working开发者_StackOverflow中文版 on a iphone app copatible for iphone4. i am showing a alert view and on selecting a yes navigating to brouwser.its ok but my application going in background.but i want it to be terminate and shuld be relaunch on clicking on app icon.
if (alertView.tag==222) {
if (buttonIndex==0) {
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"http://itunes.apple.com/"]];
}
}
also it is goingin bground when i am clicking on home button. i want app should be terminated from background also.
Set the Application does not run in background
in your info.plist to YES
Add UIApplicationExitsOnSuspend
/ Application does not run in background
to your Info.plist
.
精彩评论