-(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);
    }
}

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2022-03-10
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
猜你喜欢
  • 2021-12-24
  • 2021-12-04
  • 2021-12-19
  • 2021-10-08
  • 2021-06-29
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案