撰写新消息时,iphone 使用动画(新 View 来自屏幕底部)。我想将该动画添加到我的应用程序中。但是我在预定义的过渡动画类型中找不到它。
我该如何添加它?
请给我帮助。
最佳答案
您可以像这样切换到其他 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];
关于iphone - 如何动画 View 之间的转换?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7397632/