2011-08-17 53 views
0

我在縱向模式下創建了模態視圖。當它處於lanscape模式時,它不會旋轉。 如何在splitViewController中將模式視圖從縱向旋轉到Lanscape?自動旋轉模態視圖

回答

1

我有類似的問題。模態視圖從DetailViewController加載,當iPad旋轉時,模態視圖從視圖中完全消失。

我來修復最接近的是,旋轉,檢查模態的視圖是否已裝入,然後重新裝入,像這樣經過:

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation 
{ 
    if(self.modalViewController) 
     [self.modalViewController.view.window reloadInputViews]; 
}