1 . 两个控制器UIViewController之间的切换动画(上下,左右方向),代码:

UIViewController *controller = [[UIViewController alloc] init];

controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

[self presentModalViewController:controller Animated: YES];

2 . 枚举四种切换形式(modalTransitionStyle):

UIModalTransitionStyleCoverVertical = 0 ,

UIModalTransitionStyleFlipHorizontal ,

UIModalTransitionStyleCrossDissolve ,

UIModalTransitionStylePartialCurl

3 . 退回方法:[self dismissViewControllerAnimated:YES];