首页 > 其他 > 详细

退出程序

时间:2014-03-27 14:18:09      阅读:443      评论:0      收藏:0      [点我收藏+]
-(void) tapClick:(UITapGestureRecognizer *)tap{
    [UIViewbeginAnimations:@"exitApplication"context:nil];
    [UIViewsetAnimationDuration:0.5];
    [UIViewsetAnimationDelegate:self];
     [UIViewsetAnimationTransition:UIViewAnimationCurveEaseOutforView:self.view.windowcache:NO];
    [UIView setAnimationDidStopSelector:@selector(animationFinished:finished:context:)];
    //self.view.window.bounds = CGRectMake(0, 0, 0, 0);
    self.view.window.bounds = CGRectMake(0, 0, 0, 0);
    [UIViewcommitAnimations];
}
- (void)animationFinished:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {
    if ([animationID compare:@"exitApplication"] == 0) {
        exit(0);
    }
}

退出程序,布布扣,bubuko.com

退出程序

原文:http://www.cnblogs.com/mohe/p/3627850.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!