撰写新邮件时,iphone使用动画(新视图来自屏幕底部)。我想将该动画添加到我的应用程序中。但是我在预定义的过渡动画类型中找不到它。
我该如何添加呢?
请给我帮助。
最佳答案
您可以像这样切换到其他UIViewControllers:
[self presentModalViewController:yourUIViewController animated:YES];
动画的类型很多,例如...
yourUIViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:yourUIViewController animated:YES];
yourUIViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:yourUIViewController animated:YES];
yourUIViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:yourUIViewController animated:YES];