简体   繁体   中英

UISplitViewController set in portrait mode

In ipad app I want to set UISplitViewController method set in portrait mode.(ie Like Settings application in ipad)

I have created a SplitViewbased application .When i run the application in portrait mode it doesn't show the splitview when i change the orientation into landscape it shows the splitview.In portrait mode also there is a toolbar button name "Root List" When i click the button it shows popover view to split view.

I want to show splitview in portrait mode with two separte views each has navigation controller.

Can anyone help me ?

Thanks in advance......

我怀疑您是否可以使用UISplitViewController做到这一点,您将需要构建自己的自定义版本,以模仿大多数的正常行为,但将表保持为纵向模式。

As of iOS 5 the UISplitViewController will work in portrait mode. Look at the documentation for the delegate method:

- (BOOL)splitViewController:(UISplitViewController *)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation

您绝对应该看看Matt Legend的MGSplitViewController

我认为您正在寻找APSplitViewController

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM