• <tfoot id='fDUnY'></tfoot>
  • <legend id='fDUnY'><style id='fDUnY'><dir id='fDUnY'><q id='fDUnY'></q></dir></style></legend>
      <i id='fDUnY'><tr id='fDUnY'><dt id='fDUnY'><q id='fDUnY'><span id='fDUnY'><b id='fDUnY'><form id='fDUnY'><ins id='fDUnY'></ins><ul id='fDUnY'></ul><sub id='fDUnY'></sub></form><legend id='fDUnY'></legend><bdo id='fDUnY'><pre id='fDUnY'><center id='fDUnY'></center></pre></bdo></b><th id='fDUnY'></th></span></q></dt></tr></i><div id='fDUnY'><tfoot id='fDUnY'></tfoot><dl id='fDUnY'><fieldset id='fDUnY'></fieldset></dl></div>
          <bdo id='fDUnY'></bdo><ul id='fDUnY'></ul>

      1. <small id='fDUnY'></small><noframes id='fDUnY'>

        iOS 6 自动旋转混乱

        iOS 6 auto rotate confusion(iOS 6 自动旋转混乱)
          <tfoot id='iann2'></tfoot>

          <i id='iann2'><tr id='iann2'><dt id='iann2'><q id='iann2'><span id='iann2'><b id='iann2'><form id='iann2'><ins id='iann2'></ins><ul id='iann2'></ul><sub id='iann2'></sub></form><legend id='iann2'></legend><bdo id='iann2'><pre id='iann2'><center id='iann2'></center></pre></bdo></b><th id='iann2'></th></span></q></dt></tr></i><div id='iann2'><tfoot id='iann2'></tfoot><dl id='iann2'><fieldset id='iann2'></fieldset></dl></div>
        1. <small id='iann2'></small><noframes id='iann2'>

              • <bdo id='iann2'></bdo><ul id='iann2'></ul>
                    <tbody id='iann2'></tbody>

                  <legend id='iann2'><style id='iann2'><dir id='iann2'><q id='iann2'></q></dir></style></legend>
                  本文介绍了iOS 6 自动旋转混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我的整个界面都在一个 Storyboard 中.我怎样才能使大多数 ViewController 只支持纵向,而只有一对支持所有方向.我无法理解苹果新的自动旋转系统.另外,我怎样才能使它向后兼容 iOS 5?

                  I have my entire interface in one Storyboard. How can I make most of the ViewControllers only support a portrait orientation while only a couple supporting all orientations. I can't understand apples new auto rotate system. Also, how can I make this backwards compatable to iOS 5?

                  推荐答案

                  在您的 Navigation Controller 子类中,将决策转发到堆栈中的顶部视图控制器:

                  In your Navigation Controller subclass, forward the decision to the top view controller in the stack:

                  -(NSUInteger) supportedInterfaceOrientations {
                     return [self.topViewController supportedInterfaceOrientations];
                  }
                  

                  为此创建一个单独的故事板文件是最糟糕的做法,让它们与您的应用更新保持同步将是一场维护噩梦.

                  Creating a separate storyboard file for this is the worst path to follow, it'll be a maintenance nightmare to keep them in sync with your app updates.

                  这篇关于iOS 6 自动旋转混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How To Create a Rotating Wheel Control?(如何创建转轮控件?)
                  iOS 6 rotations: supportedInterfaceOrientations doesn#180;t work?(iOS 6 旋转:supportedInterfaceOrientations 不起作用?)
                  CABasicAnimation rotate returns to original position(CABasicAnimation 旋转返回原始位置)
                  How to avoid restarting activity when orientation changes on Android(如何在 Android 上的方向更改时避免重新启动活动)
                  UITabBarController Rotation Issues in ios 6(ios 6 中的 UITabBarController 旋转问题)
                  iOS: How to run a function after Device has Rotated (Swift)(iOS:设备旋转后如何运行函数(Swift))
                    <bdo id='U2jyK'></bdo><ul id='U2jyK'></ul>
                  • <small id='U2jyK'></small><noframes id='U2jyK'>

                    <legend id='U2jyK'><style id='U2jyK'><dir id='U2jyK'><q id='U2jyK'></q></dir></style></legend>

                    <tfoot id='U2jyK'></tfoot>

                          <tbody id='U2jyK'></tbody>
                        <i id='U2jyK'><tr id='U2jyK'><dt id='U2jyK'><q id='U2jyK'><span id='U2jyK'><b id='U2jyK'><form id='U2jyK'><ins id='U2jyK'></ins><ul id='U2jyK'></ul><sub id='U2jyK'></sub></form><legend id='U2jyK'></legend><bdo id='U2jyK'><pre id='U2jyK'><center id='U2jyK'></center></pre></bdo></b><th id='U2jyK'></th></span></q></dt></tr></i><div id='U2jyK'><tfoot id='U2jyK'></tfoot><dl id='U2jyK'><fieldset id='U2jyK'></fieldset></dl></div>