objective-c - iOS UIView Controller 的水平过渡

标签 objective-c cocoa-touch uikit uiviewcontroller

嗨,我有一个问题,我想做水平过渡,但在其他论坛上他们说这是不可能的

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];

我找到了,但是没有用

here

谢谢

最佳答案

根据 UIViewController Class Reference presentModalViewController 方法目前支持的唯一有效的 UIModalTransitionStyle 转换是 (iOS 4.2):

  • UIModalTransitionStyleCoverVertical
  • UIModalTransitionStyleFlipHorizo​​ntal
  • UIModalTransitionStyleCrossDissolve
  • UIModalTransitionStylePartialCurl

(请参阅文档末尾“常量”部分中的“UIModalTransitionStyle”信息。)

您确定要以模态方式呈现 View 吗? (我不禁想知道您是否正在尝试创建 UINavigationController 样式设置。)

关于objective-c - iOS UIView Controller 的水平过渡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4745574/

相关文章:

ios - 非矩形图像裁剪 iOS?

ios - 弹出到 Root View Controller , TableView 没有动画崩溃

ios - RFQuiltLayout 和 UICollectionView

iphone - 一个应用程序,多个品牌

objective-c - 如何检测退格键何时被长按?

ios - 从 Instruments 读取内存分配结果

ios - 在 UITabBarController 中隐藏了 UINavigationController

ios - 在 iOS 中实现自动完成

ios - 导航 Controller 工具栏在显示 UIActionSheet 后变为空白

objective-c - printf/scanf替换方法: some feedback/advice needed