在纵向模式下单独显示主视图

时间:2013-06-18 08:57:25

标签: ios uisplitviewcontroller

我在iPad应用中使用了UISplitViewcontroller。我的要求是只在纵向模式下显示主视图,在横向模式下显示主视图和细节。我尝试使用SplitView控制器,但它只显示纵向模式下的详细视图。

委托功能splitViewController:shouldHideViewController:inOrientation:将以纵向显示主人和详细信息,但这不是我的要求。

此外,它仅支持iOS 5.0,我的应用程序应支持iOS 4.3。

1 个答案:

答案 0 :(得分:1)

put

self.splitViewController?.preferredDisplayMode = UISplitViewControllerDisplayMode.allVisible  

MasterViewController

相关问题