ios应用强制退出方法
AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate;UIWindow *window = app.window;[UIView animateWithDuration:1.0f animations:^{window.alpha = 0;} completion:^(BOOL finished)
·
AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate;
UIWindow *window = app.window;
[UIView animateWithDuration:1.0f animations:^{
window.alpha = 0;
} completion:^(BOOL finished) {
exit(0);
}];
更多推荐
所有评论(0)