美文网首页
iOS 仿安卓平滑退出应用或进程退出(exit、_exit、ab

iOS 仿安卓平滑退出应用或进程退出(exit、_exit、ab

作者: 阳光下的叶子呵 | 来源:发表于2022-09-01 10:47 被阅读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;

相关文章

网友评论

      本文标题:iOS 仿安卓平滑退出应用或进程退出(exit、_exit、ab

      本文链接:https://www.haomeiwen.com/subject/aaalnrtx.html