我已經閱讀了幾乎所有關於新的iOS6 autorotation的答案,但我仍然無法做到我想要的。iOS6自動旋轉。 TabBar-> Navigation-> Modal
我有一個tabBar。其中一個選項卡是NavigationView。當你把iPhone變成風景時,一個modalViewController被加載。
一切工作正常在iOS5上,但我不能讓模態視圖旋轉在iOS6上。我已經嘗試了繼承導航控制器,繼承tabbar控制器和兩個!沒門。
我現在很困惑。哪一個是負責旋轉模態視圖? tabbarController?,navigationViewController?,viewController是誰展示的?
我很感激任何幫助。
由於
[self presentModalViewController:newController animated:YES];在iOS6中不推薦使用,試試[self presentViewController:newController animated:YES completion:nil]; – Bala
我期待着看到這個答案。我也有同樣的問題。 – ppaulojr