强制让App直接退出(非闪退,非崩溃)

2017-09-12  本文已影响0人  MrCSA

- (void)exitApplication {

AppDelegate *app = [UIApplication sharedApplication].delegate;

UIWindow *window = app.window;

[UIView animateWithDuration:1.0f animations:^{

window.alpha = 0;

} completion:^(BOOL finished) {

exit(0);

}];

}

上一篇下一篇

猜你喜欢

热点阅读