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

1. 

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

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2021-12-19
  • 2022-12-23
  • 2021-11-03
  • 2021-11-03
猜你喜欢
  • 2022-01-30
  • 2021-08-13
  • 2021-11-17
  • 2022-12-23
  • 2022-01-02
  • 2021-06-20
相关资源
相似解决方案