<tfoot id='PhjP8'></tfoot>

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

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

        iOS 8 旋转方法弃用 - 向后兼容性

        时间:2023-05-19

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

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

            1. <legend id='rwcLc'><style id='rwcLc'><dir id='rwcLc'><q id='rwcLc'></q></dir></style></legend>

                  <bdo id='rwcLc'></bdo><ul id='rwcLc'></ul>
                • <tfoot id='rwcLc'></tfoot>
                  本文介绍了iOS 8 旋转方法弃用 - 向后兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  在 iOS 8 中,界面旋转的方法是 已弃用.这包括:

                  In iOS 8, the methods for interface rotation are deprecated. This includes:

                  • willRotateToInterfaceOrientation:duration:
                  • didRotateFromInterfaceOrientation:
                  • willAnimateRotationToInterfaceOrientation:duration:

                  替换方法包括:

                  • willTransitionToTraitCollection:withTransitionCoordinator:
                  • viewWillTransitionToSize:withTransitionCoordinator:

                  如果未实现新的旋转方法,并且项目是使用 iOS 8 SDK 编译的,则视图控制器 - 将不会接收调用- 对已弃用的旋转方法的调用.

                  If the new rotation methods are not implemented, and a project is compiled with the iOS 8 SDK, the view controllers -will not receive calls- to the deprecated rotation methods.

                  我担心的是:AppStore 中已经使用 iOS 7 SDK 构建的应用会发生什么情况?是否仍会在 iOS 8 设备上调用已弃用的轮换方法?

                  仍会调用旋转方法,但在 iOS 8 中存在一些更改/问题/错误.

                  The rotation methods are still called, but there exist some changes/issues/bugs in iOS 8.

                  另外,UIScreen 现在是面向界面的

                  Also UIScreen is now interface oriented

                  推荐答案

                  iOS 8 SDK 中不推荐使用旋转方法.这对使用 iOS 7 SDK 构建的应用完全没有影响,即使在 iOS 8 和未来的几个 iOS 版本中运行也是如此.

                  The rotation methods are deprecated in the iOS 8 SDK. This will have no effect at all on apps built with the iOS 7 SDK, even running in iOS 8 and probably several future versions of iOS.

                  例如,UIButtonfont 属性自 iOS 3.0 以来已被弃用,但在 iOS 7.0 中仍然可用.

                  As an example, the font property of UIButton has been deprecated since iOS 3.0 and is still available in iOS 7.0.

                  这篇关于iOS 8 旋转方法弃用 - 向后兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 Swift 中旋转 UIButton 和 UILabel 的文本? 下一篇:如何捕获当前视图屏幕截图并在代码中重用?(iPhone SDK)

                  相关文章

                • <small id='YmY23'></small><noframes id='YmY23'>

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

                    <tfoot id='YmY23'></tfoot>
                    • <bdo id='YmY23'></bdo><ul id='YmY23'></ul>