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

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

1. 

exit(0);
2.
if([[UIApplication sharedApplication] respondsToSelector:@selector(terminateWithSuccess)]){
    [[UIApplication sharedApplication] performSelector:@selector(terminateWithSuccess)];
}
posted @ 2017-05-08 17:40  zhchoutai  阅读(1261)  评论(0编辑  收藏  举报