嗨,我有一个问题,我想做水平过渡,但在其他论坛上他们说这是不可能的
CrossViewController *screen = [[CrossViewController alloc] initWithNibName:nil bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleCoverVertical;//here i must add som horizontal transition animation
[self presentModalViewController:screen animated:YES];
[screen.but setTitle:@"funguje" forState:UIControlStateNormal];
//screen.vyberUcet;
[screen release];
我找到了,但是没有用
谢谢
最佳答案
根据 UIViewController Class Reference presentModalViewController 方法目前支持的唯一有效的 UIModalTransitionStyle 转换是 (iOS 4.2):
- UIModalTransitionStyleCoverVertical
- UIModalTransitionStyleFlipHorizontal
- UIModalTransitionStyleCrossDissolve
- UIModalTransitionStylePartialCurl
(请参阅文档末尾“常量”部分中的“UIModalTransitionStyle”信息。)
您确定要以模态方式呈现 View 吗? (我不禁想知道您是否正在尝试创建 UINavigationController 样式设置。)
关于objective-c - iOS UIView Controller 的水平过渡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4745574/