当前位置:首页 > 操作系统 > Ios

IOS开发退出应用程序的代码

IOS 开发中。我知道的两个退出程序的方法:

1. 

exit(0);
2.
if([[UIApplication sharedApplication] respondsToSelector:@selector(terminateWithSuccess)]){
    [[UIApplication sharedApplication] performSelector:@selector(terminateWithSuccess)];
}

原文:http://www.cnblogs.com/zhchoutai/p/6826192.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!