[[UIApplication sharedApplication] performSelector:@selector(suspend)];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
exit(0);
});
[[UIApplication sharedApplication] performSelector:@selector(suspend)];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
exit(0);
});
本文标题:2021-12-08 iOS 优雅退出应用
本文链接:https://www.haomeiwen.com/subject/oaltfrtx.html
网友评论