开发者

iphone:terminate application in iphone [duplicate]

开发者 https://www.devze.com 2023-04-04 23:46 出处:网络
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 iphon
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

精彩评论

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