0

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

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

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

关闭 Modal VC(从主弹出框内)后,弹出框的布局是“关闭的”,即表格没有为弹出框正确自动调整大小。

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

谢谢。

4

1 回答 1

0

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

UIViewController* myModalVC =  [UIViewController alloc] init]; 
myModalVC .modalPresentationStyle = UIModalPresentationFullScreen;
//myModalVC .modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;     
[self presentViewController:rViewController animated:YES completion:nil];
于 2012-04-25T23:42:11.923 回答