iOS 退出程序

尹一下app的头文件


AppDelegate * app = (AppDelegate *)[UIApplication sharedApplication].delegate;

UIWindow *window = app.window;

[UIView animateWithDuration:0.5 animations:^{

window.alpha = 0.0;

window.frame = CGRectMake(0, window.bounds.size.width, 0, 0);

} completion:^(BOOL finished) {

exit(0);

}];

你可能感兴趣的:(iOS 退出程序)