自定义控制器切换的动画和样式
CATransition *animation = [CATransition animation];
animation.duration = 2.0;animation.timingFunction = [CAMediaTimingFunction functionWithName:@"easeInEaseOut"];
animation.type = kCATransitionPush;
animation.subtype = kCATransitionFromBottom;
[self.navigationController.view.layer addAnimation:animation forKey:@"animation"];
UIViewController *vc = [[UIViewController alloc] init];
[self.navigationController pushViewController:vc animated:YES];
其他的一些类型
animation.type = @"cube";//立方体效果
animation.type = @"suckEffect";//收缩效果
animation.type = @"oglFlip";//上下翻转效果
animation.type = @"rippleEffect";//滴水效果
animation.type = @"pageCurl";//向上翻一页效果
animation.type = @"pageUnCurl";//向下翻一页效果