iOS 仿安卓平滑退出应用或进程退出(exit、_exit、ab
2022-09-01 本文已影响0人
阳光下的叶子呵
AppDelegate *app = [UIApplication sharedApplication].delegate;
UIWindow *window = app.window;
[UIView animateWithDuration:1.0f animations:^{
window.alpha =0;
window.frame = CGRectMake(0, window.bounds.size.width, 0, 0);
} completion:^(BOOL finished) {
exit(0);
}];
return;