开发者

iphone:terminate application in iphone [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜