码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2017-05-08 17:52:47      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:span   class   art   har   方法   ica   tor   selector   share   

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

1. 

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

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

标签:span   class   art   har   方法   ica   tor   selector   share   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!