可能重复:
你好,我是iphone开发的初学者。我正在为iphone4开发一个可复制的iphone应用程序。我显示了一个警告视图,在选择“是”时,导航到brouwser.its,ok,但我的应用程序在background.but中运行,我希望它被终止,并在单击应用程序图标时重新启动。
if (alertView.tag==222) {
if (buttonIndex==0) {
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"http://itunes.apple.com/"]];
}
}而且,当我点击“家”按钮时,它也在变钝。我希望应用程序应该终止背景也。
发布于 2011-09-14 11:11:15
将Application does not run in background设置为info.plist中的YES
发布于 2011-09-14 11:12:34
将UIApplicationExitsOnSuspend / Application does not run in background添加到Info.plist中。
https://stackoverflow.com/questions/7415273
复制相似问题