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

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-11-21
  • 2021-09-14
  • 2022-12-23
  • 2022-03-03
相关资源
相似解决方案