iOS6中的奇数SplitView / NavigationController行为 [英] Odd SplitView/NavigationController behavior in iOS6

查看:105
本文介绍了iOS6中的奇数SplitView / NavigationController行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个很长的镜头,但我想我是否会看到其他人是否已经看到/解决了这个问题。

This is a long shot but I figured I'd see if anybody else has seen/fixed this issue.

我有一个使用的IOS 6前应用程序一个 UISplitViewController 在主窗格和详细信息窗格中都带有 NavigationControllers

I have an pre-IOS 6 app that uses a UISplitViewController with NavigationControllers in both the master and detail pane.

在iOS 5及更早版本中,如果我将 UIViewController 推入主导航控制器,它会滑入;弹出该视图控制器然后将其滑回。

In iOS 5 and earlier, if I push a UIViewController onto the master navigation controller, it slides in; popping that view controller then slides it back out.

在iOS 6中,仅横向,如果我按 UIViewController 在主导航控制器上滑入;然而,弹出该视图控制器然后似乎考虑视图控制器模式,因为它将视图控制器置于屏幕中心,然后将其放到底部,就像 dismissModalController 命令一样。如果它处于纵向模式,它会按预期滑入/滑出。

In iOS 6, in landscape orientation only, if I push a UIViewController onto the master navigation controller it slides in; however, popping that view controller then appears to consider the viewcontroller modal because it centers the view controller in the screen and then drops it to the bottom like a "dismissModalController" command would do. If it is in portrait mode, it slides in/out as expected.

我不知道该怎么做 - 具有相似布局的较新应用程序没有这个问题。我怀疑它与初始窗口/导航器设置有关(在这个应用程序中)使用 MainWindow.xib MainWindow以旧方式配置-iPad.xib 。我宁愿不尝试将所有内容全部删除并使用新方式重新配置(在 appdelegate 中完成所有操作)

I'm not sure what to do about this - Newer apps with similar layouts don't have this problem. I suspect it has something to do with the initial window/navigator setup which (in this app) was configured the old way with MainWindow.xib and MainWindow-iPad.xib. I'd rather not try to rip all that out and reconfigure using the "new" way (which does it all in the appdelegate)

推荐答案

在我的视图中实现以下控制器为我解决了这个问题

implementing the following in my view controllers solved it for me

-(NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}

希望它也适合你

这篇关于iOS6中的奇数SplitView / NavigationController行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆