UIApplication *app = [UIApplication sharedApplication];
[app performSelector:@selector(suspend)];
//wait 2 seconds while app is going background
[NSThread sleepForTimeInterval:2.0];
//exit app when app is in background
NSLog(@"exit(0)");
exit();
相关文章
- 11-03初学IOS开发-简单的加法计算器swift版本
- 11-03iOS高阶进阶须知
- 11-03iOS面试全面文案
- 11-03iOS关键词weak和assign的区别
- 11-03iOS-weak修饰的对象被释放时,weak指针自动被置为nil的实现原理
- 11-03回顾2020 iOS面试
- 11-03iOS面试题整理---实现weak后,为什么对象释放后会自动为nil
- 11-03回顾2020 iOS面试
- 11-03iOS---------开发中 weak和assign的区别
- 11-03iOS内存管理-ARC