简体   繁体   English

UISplitViewController设置为纵向模式

[英]UISplitViewController set in portrait mode

In ipad app I want to set UISplitViewController method set in portrait mode.(ie Like Settings application in ipad) 在ipad应用程序中,我想将UISplitViewController方法设置为纵向模式。(即,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. 我已经创建了一个基于SplitView的应用程序。当我在纵向模式下运行该应用程序时,当我将方向更改为横向时,它不会显示splitview。它会显示splitview。在纵向模式下,当我使用该工具栏时,也会出现一个名为“ Root List”的工具栏按钮。单击按钮,它显示弹出窗口视图以拆分视图。

I want to show splitview in portrait mode with two separte views each has navigation controller. 我想以纵向模式显示splitview,其中两个separte视图均具有导航控制器。

Can anyone help me ? 谁能帮我 ?

Thanks in advance...... 提前致谢......

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

As of iOS 5 the UISplitViewController will work in portrait mode. 从iOS 5开始,UISplitViewController将以纵向模式运行。 Look at the documentation for the delegate method: 查看有关委托方法的文档:

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

您绝对应该看看Matt Legend的MGSplitViewController

我认为您正在寻找APSplitViewController

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 UISplitViewController 纵向模式缺少 UIBarButtonItem - UISplitViewController portrait mode missing UIBarButtonItem UISplitViewController在横向模式下显示为纵向 - UISplitViewController appears portrait in landscape mode UISplitViewController - 以纵向模式打开,masterViewController可见 - UISplitViewController - open in portrait mode with masterViewController visible UISplitViewController中的ActionSheet在纵向模式下的行为与横向模式不同 - ActionSheet within UISplitViewController acts different in Portrait Mode than Landscape Mode 当我在UISplitViewController中将iPad转到纵向模式时,调整detailViewController的pagecontrolview的大小 - Resize the pagecontrolview of detailViewController when i turn iPad to Portrait mode in UISplitViewController UISplitViewController 始终在 iPad 纵向模式 iOS 9 中显示主视图 - UISplitViewController always show master view in iPad portrait mode iOS 9 如何为UISplitViewController的纵向模式下显示的UIBarButtonItem提供自定义视图? - How to give a custom view for the UIBarButtonItem that is shown on portrait mode for UISplitViewController? 在纵向模式下更改 UISplitViewController 中的详细信息导航栏 - Changing Detail's Navigation Bar in UISplitViewController in Portrait mode 在纵向模式下按下新视图控制器后,iOS UISplitViewController的Popover控制器按钮消失 - iOS UISplitViewController's Popover controller button disappear after pushing new view controller in portrait mode 在纵向和横向模式下为iPad设置不同的约束 - Set different constraints for iPad in portrait and landscape mode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM