2012-04-19 55 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];