2012-04-19 57 views
0

我的splitViewController的“主”一侧的一个分支中的最后一个segue是从主表中的tableViewCell到tableViewController的模式(全屏)segue。故事板模态segue呈现内部弹出框

当设备是风景时,一切正常,新的tableViewController按预期全屏显示。

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

解除Modal VC(从主popover中)后,popover的布局是“off”,即该表未针对popover正确自动存储。

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

谢谢。

回答

0

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

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