首页 > 代码库 > IOS - 退出程序

IOS - 退出程序

- (void)exitApplication {

    OAAppDelegate *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);//

    }];

}

IOS - 退出程序