iOS 系统push转场动画

VfLoginViewController *vfLogin = [[VfLoginViewController alloc]init];  //将要push到的控制器
[UIView transitionWithView:self.navigationController.view
                  duration:0.5
                   options:UIViewAnimationOptionTransitionFlipFromLeft  //从左向右翻转
                animations:^{
                    [self.navigationController pushViewController:vfLogin animated:NO];
                }
                completion:nil];

动画类型:

UIViewAnimationOptionTransitionNone = 0 << 20, // default 无效果
UIViewAnimationOptionTransitionFlipFromLeft = 1 << 20, 从左向右翻转
UIViewAnimationOptionTransitionFlipFromRight = 2 << 20, 从右向左翻转
UIViewAnimationOptionTransitionCurlUp = 3 << 20, 向上翻页
UIViewAnimationOptionTransitionCurlDown = 4 << 20, 向下翻页
UIViewAnimationOptionTransitionCrossDissolve = 5 << 20, 溶解
UIViewAnimationOptionTransitionFlipFromTop = 6 << 20, 从上向下翻转
UIViewAnimationOptionTransitionFlipFromBottom = 7 << 20, 从下向上翻转

你可能感兴趣的:(iOS 系统push转场动画)