我有一個UITabViewController應用程序,帶有4個選項卡,每個選項卡帶有一個UINavigationController,每個選項卡都帶有一個UItableView。當單擊一行時,它將導航到另一個視圖。 我想只爲某個UIViewController支持Landscape Orientation,而不支持任何其他視圖。 當我在每個UINavigationcontrollers(BOOL)shouldAutorotateToInterfaceOrientation:方法上設置「return YES」時,即使在uitableview中,應用也會定向到所有視圖。 我該如何解決這個問題?我很困惑UiTabViewControllers + UINavigationControllers + UIViewControllers方向
2
A
回答
0
如果你想維護你的需求視圖,那麼你必須爲每個選項卡做不同的視圖,在界面生成器中,你必須創建任何你需要的橫向視圖。添加橫向視圖時,在界面構建器中創建的橫向視圖將僅顯示爲橫向。將不需要shouldAutorotateInterfaceOrientation方法。
相關問題
- 1. UIViewControllers沒有收到方向通知
- 2. 雙UITabViewControllers使用故事板
- 3. 嵌套的UINavigationControllers
- 4. popToRootViewController不與UINavigationControllers
- 5. UIViewController navigationItems與UINavigationControllers導航欄的關係?
- 6. 需要幫助修復某些UIViewControllers的方向
- 7. UINavigationController堆棧中UIViewControllers的不同界面方向
- 8. UIViewControllers,Delegates
- 9. 用UIView替換UINavigationControllers NavigationBar
- 10. 兩個UINavigationControllers之間的轉換
- 11. 是不是改變UIViewControllers的好方法?
- 12. 父子UIViewControllers IOS
- 13. UIViewControllers - TabBarApplication - iPhone SDK
- 14. 的UIScrollView多UIViewControllers
- 15. UIViewControllers和UIWebView
- 16. iphone - 緩存UIViewControllers?
- 17. 分層UIViewControllers?
- 18. 與地圖類似的多個UINavigationControllers
- 19. xcode創建uiviewcontrollers飛
- 20. 無法設置UIViewControllers
- 21. UITabBarController與UIViewControllers和UITableViewControllers
- 22. 多個UIViewControllers同時
- 23. UIViewControllers彼此絆倒
- 24. 如何避免始終創建UINavigationControllers?
- 25. 如何確定UINavigationControllers中以前的visibleViewController?
- 26. 如何在單獨的縱向和橫向UIViewControllers之間平滑過渡?
- 27. 兩個UINavigationControllers在同一個viewcontroller
- 28. 在UIScrollView中旋轉UIViewControllers
- 29. UIView&UIViewControllers設計模式
- 30. 抓UIviews的概念和UIViewcontrollers
您是在導航控制器還是表格視圖控制器中定義shouldAutorotateToInterfaceOrientation方法? – Nimrod 2010-10-11 17:30:57
我正在定義導航控制器中的shouldAutorotateInterfaceOrientation方法 – Rupert 2010-10-12 05:39:59