代码关闭程序的几种方法

有时候需要用代码的方式关闭程序,其实功能就像按了home键。

这两种可以用

  1. [self performSelector:@selector(notExistCall)];  
  2. abort();  
 

这两种是私有的,不能通过app store.

  1. [[UIApplication sharedApplication] performSelector:@selector(terminateWithSuccess)];   
  2. exit(0);  

 http://blog.csdn.net/favormm/article/details/6444351

posted @ 2011-07-09 10:17  周宏伟  阅读(1137)  评论(0编辑  收藏  举报