• <bdo id='4ZDlz'></bdo><ul id='4ZDlz'></ul>
    <tfoot id='4ZDlz'></tfoot>

    <small id='4ZDlz'></small><noframes id='4ZDlz'>

      <legend id='4ZDlz'><style id='4ZDlz'><dir id='4ZDlz'><q id='4ZDlz'></q></dir></style></legend>

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

      1. 支持 iOS 4.3 到 iOS 6.0

        时间:2023-05-30
      2. <tfoot id='vK1jI'></tfoot>

          <tbody id='vK1jI'></tbody>

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

          • <bdo id='vK1jI'></bdo><ul id='vK1jI'></ul>

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

                <legend id='vK1jI'><style id='vK1jI'><dir id='vK1jI'><q id='vK1jI'></q></dir></style></legend>
                1. 本文介绍了支持 iOS 4.3 到 iOS 6.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我已经有了支持ios 4.3到ios 5的基础代码,现在我也想支持ios 6.0.目前的基本代码有modal views,硬编码CGRect's,每个视图的旋转是不同的.所以我想知道我们是否可以通过相同的基本代码支持 ios 4.3 到 ios 6.0,只需调整一些更改,还是我们需要创建一个完整的新目标?

                  I already have the base code that supports ios 4.3 to ios 5. Now I would also like to support ios 6.0. The present base code has modal views, hard coded CGRect's, and rotation is different for each view. So I would like to know whether we can support ios 4.3 to ios 6.0 with the same base code, by just tweaking some changes, or do we need to create a complete new target?

                  如果我想支持以前的版本,我们不能使用 ios 6.0 的自动布局,因为它会导致崩溃.

                  Like we cannot use auto layout of ios 6.0 if I want to support previous versions as it will lead to a crash.

                  推荐答案

                  是的,我们可以通过将部署目标设置为 iOS 4.3 来做到这一点.但是,你为什么需要支持iOS <5.0,因为大约 85-90% 的设备使用 iOS 5.0+.请参阅此

                  Yes, we can do this by setting up the Deployment Target to iOS 4.3. But then, why do you need to support iOS < 5.0 as around 85-90% of devices are on iOS 5.0+. See this

                  此外,当您设置对 iOS 4.3 甚至 iOS 5.1.1 的支持时,您将不得不处理多种事情.比如Orientation的方法,

                  Also, when you set up support for iOS 4.3 or even iOS 5.1.1, you would have to handle multiple things. For example, the method for Orientation,

                  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
                  

                  iOS 6 不调用它.它被方法替换,

                  isn't called for iOS 6. It is replaced by the methods,

                  - (NSUInteger)supportedInterfaceOrientations
                  
                  - (BOOL)shouldAutorotate
                  

                  您需要设备上的所有 iOS 版本,然后测试应用程序的各个方面.

                  You would need all the iOS versions on devices and then test each and every aspect of your app.

                  这篇关于支持 iOS 4.3 到 iOS 6.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:未找到 ios 类“预期类型" 下一篇:ios5 上的dismissViewControllerAnimated 崩溃

                  相关文章

                  最新文章

                2. <tfoot id='TXhnz'></tfoot>
                  • <bdo id='TXhnz'></bdo><ul id='TXhnz'></ul>
                  1. <small id='TXhnz'></small><noframes id='TXhnz'>

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