标签:
方法一:
- (void)exitApplication
{
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);
}];
}
方法二:
[[UIApplication sharedApplication] terminateWithSuccess];
标签:
原文地址:http://www.cnblogs.com/lyBlog2016/p/5606857.html