有时候需要用代码的方式关闭程序,其实功能就像按了home键。
这两种可以用
[self performSelector:@selector(notExistCall)]; abort(); 这两种是私有的,不能通过app store.
[[UIApplication sharedApplication] performSelector:@selector(terminateWithSuccess)]; exit(0); 转载自:http://blog.youkuaiyun.com/favormm/article/details/6444351
本文介绍了几种在代码中实现程序关闭的方法,包括使用私有方法如[self performSelector:@selector(notExistCall)]和abort(),以及公开可用的方法如[[UIApplication sharedApplication] performSelector:@selector(terminateWithSuccess)]和exit(0)。

被折叠的 条评论
为什么被折叠?



