2010-05-17 19 views
0

我在ipad中使用了SplitViewController。在一個按鈕上點擊詳細視圖,我打開一個全屏模式的模態視圖。每當我解除模態視圖時,以縱向模式顯示桌面視圖的按鈕會向右移動。SplitView控制器縱向模式 - 頂部按鈕不斷向右移動

如果我繼續打開模式視圖並將其解除,它會一直向右移動,直到它消失在屏幕的右側。

任何想法爲什麼會發生這種情況?

+0

BTW。這在模擬器上發生。我尚未在設備上進行測試。 – nishantcm 2010-05-17 08:52:47

+0

這也發生在設備上。此外,用於肖像模式的條形按鈕也會出現在橫向模式中。 – nishantcm 2010-05-18 05:23:01

回答

0

當any.modalPresentationStyle = UIModalPresentationFullScreen;

我將它更改爲any.modalPresentationStyle = UIModalPresentationPageSheet;現在一切都很好。

0

我確認了變化modalPresentationStyle到UIModalPresentationPageSheet的伎倆 例如:

MY_VC *controller = [[MY_VC alloc] initWithNibName:@"MY_VC" bundle:nil]; 
[controller setModalPresentationStyle:UIModalPresentationPageSheet]; 
[splitViewController presentModalViewController:controller animated:NO];