代码关闭程序的几种方法

有时候需要用代码的方式关闭程序,其实功能就像按了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

你可能感兴趣的:(代码)