exit(0)添加动画

来源:互联网 发布:怎样开淘宝网店知乎 编辑:程序博客网 时间:2024/05/29 07:42
    [UIView beginAnimations:@"exitApplication" context:nil];    [UIView setAnimationDuration:0.5];    [UIView setAnimationDelegate:self];    [UIView setAnimationTransition:UIViewAnimationCurveEaseOut forView:[UIApplication sharedApplication].keyWindow cache:NO];    [UIView setAnimationDidStopSelector:@selector(animationFinished:finished:context:)];    [UIApplication sharedApplication].keyWindow.bounds = CGRectMake(0, 0, 0, 0);    [UIView commitAnimations];

0 0
原创粉丝点击