【问题标题】:Storyboard modal segue presenting inside popover在弹出框内呈现的故事板模态序列
【发布时间】:2012-04-30 16:16:40
【问题描述】:

我的 splitViewController 的“master”一侧的一个分支中的最后一个 segue 是从 master 中的 tableViewCell 到 tableViewController 的模态(全屏)segue。

当设备为横向时,一切正常,新的 tableViewController 按预期全屏显示。

但是,当设备是纵向的并且使用弹出按钮显示 masterVC 时,选择 tableViewCell 会导致模态 segue 在弹出窗口内而不是全屏显示新的 TableVC。

在关闭 Modal VC(从主弹出框内)后,弹出框的布局“关闭”,即表格未针对弹出框自动调整大小。

谁能告诉我为什么?或者指出我解决这个问题的正确方向......

谢谢。

【问题讨论】:

    标签: ios5 xcode4 storyboard uisplitviewcontroller


    【解决方案1】:

    默认情况下,正在呈现的 UIViewController 继承了演示者的呈现上下文。 您可以通过修改 modalPresentationStyle 以及您想要以模态方式呈现的 UIViewController 的 modalTransitionStyle 来更改此设置。

    UIViewController* myModalVC =  [UIViewController alloc] init]; 
    myModalVC .modalPresentationStyle = UIModalPresentationFullScreen;
    //myModalVC .modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;     
    [self presentViewController:rViewController animated:YES completion:nil];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-26
      • 1970-01-01
      • 1970-01-01
      • 2013-02-08
      • 1970-01-01
      • 2016-11-01
      • 1970-01-01
      相关资源
      最近更新 更多