- [UIView beginAnimations:@"View Flip" context:nil];
- [UIView setAnimationDuration:1.25];
- [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
- UIViewController *coming = [[UIViewController alloc] init];
- UIViewController *going = [[UIViewController alloc] init];
- UIViewAnimationTransition transition;
- coming.view = self.view.superview;
- going.view = self.view;
- transition = UIViewAnimationTransitionCurlUp;
- [UIView setAnimationTransition:transition forView:self.view.superview cache:YES];
- [coming viewWillAppear:YES];
- [going viewWillDisappear:YES];
- [going.view removeFromSuperview];
- [going viewDidDisappear:YES];
- [coming viewDidAppear:YES];
- [UIView commitAnimations];
UIView Animation 动画效果
最新推荐文章于 2022-02-27 19:35:32 发布