<bdo id='ok8HF'></bdo><ul id='ok8HF'></ul>

      <small id='ok8HF'></small><noframes id='ok8HF'>

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

        IOS 6屏幕旋转不使用情节提要

        IOS 6 screen rotation without using storyboard(IOS 6屏幕旋转不使用情节提要)

          <tbody id='Z6lHM'></tbody>
        <legend id='Z6lHM'><style id='Z6lHM'><dir id='Z6lHM'><q id='Z6lHM'></q></dir></style></legend>

        <small id='Z6lHM'></small><noframes id='Z6lHM'>

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

                2. 本文介绍了IOS 6屏幕旋转不使用情节提要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  任何尝试最新 iOS 6 测试版(版本 2 或 3)的人都有相同的自动旋转不起作用的经历?

                  Anyone who's trying the newest iOS 6 beta(version 2 or 3) has the same experience of auto rotation not working?

                  我没有使用故事板,而是纯粹的导航控制:

                  I am not using storyboard but pure navigation control:

                  self.navController = [[UINavigationController alloc] initWithRootViewController:self.viewController];
                  [self.window addSubview:navController.view];
                  

                  还有:

                  - (BOOL)shouldAutorotateToInterfaceOrientation: ](UIInterfaceOrientation)interfaceOrientation
                  {
                      if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
                          return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
                  } else {
                      return YES;
                  }
                  }
                  
                  - (NSUInteger)supportedInterfaceOrientations{
                  return UIInterfaceOrientationMaskAllButUpsideDown;
                  }
                  

                  但是 IOS 根本没有支持,在 3GS/4S 和 4.3,5.0.5.1 模拟器上与所有以前的 iOS 都可以正常工作,但 iOS 6 似乎只是错误

                  BUT IOS has no espouse at all, works fine with all previous iOS on 3GS/4S and 4.3,5.0.5.1 simulator, but iOS 6 seems just buggy

                  推荐答案

                  解决方案是:由于我的应用试图从 4.3+ 开始支持,因此我必须使用导航控制器来进行每个视图切换.

                  The solution is that: Since my app is trying to support from 4.3+, I have to use the navigation controller to do every view switch.

                  通过 ios6 似乎代表导航控制器,我必须定义自己的导航控制器,并设置条件和函数来更改其旋转行为.

                  by ios6 seems delegates to the navigation controller, I have to define my own navigation controller, and setup conditions and functions to change its rotation behaviour.

                  当我加载视图时,我会执行 ([self.navigationCONtroller setEnableLandscape:(BOOL)false]).这样你就拥有了导航控制器的完整控制器.

                  When I load a view, I then do([self.navigationCOntroller setEnableLandscape:(BOOL)false]). in that way you have full controller of your navigation controller.

                  注意:我确实尝试过覆盖导航控制器方法,但似乎只是被忽略了.(这只发生在 ios 6.0 上),还没有测试 6.1,所以不确定它是否得到修复(如果有,请告诉我)

                  NOTE: I did try override the navigation controller methods, but seems just get ignored. (This only happens to ios 6.0 as well), haven't test 6.1 yet, so not sure if it's get fixed(which please let me know if it does)

                  这篇关于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))

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

                            <small id='Aily4'></small><noframes id='Aily4'>

                          • <tfoot id='Aily4'></tfoot>