两个UIViewController之间的翻转可以用动画效果翻转(上下,左右翻转,翻页,淡出)
UIViewController之间的切换除了UINavigationController里面的pushViewController和 popViewController与UITalbarController在viewControllers之间的切换外
还可以在其他地方自由的进行ViewController切换:
MyViewController *_myViewController = [[MyViewController alloc] init]; _myViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self presentModalViewController: _myViewController Animated: YES]; [_myViewController release]; 有四种切换形式(modalTransitionStyle): UIModalTransitionStyleFlipHorizontal //水平翻转 UIModalTransitionStyleCoverVertical (default) //从下到上 UIModalTransitionStyleCrossDissolve //淡出 UIModalTransitionStylePartialCurl //翻书 退回方法:[self dismissModalViewControllerAnimated:YES];
白白原创http://blog.csdn.net/u010229677
时间: 2024-11-15 15:33:31