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

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

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

    1. <i id='yvX8B'><tr id='yvX8B'><dt id='yvX8B'><q id='yvX8B'><span id='yvX8B'><b id='yvX8B'><form id='yvX8B'><ins id='yvX8B'></ins><ul id='yvX8B'></ul><sub id='yvX8B'></sub></form><legend id='yvX8B'></legend><bdo id='yvX8B'><pre id='yvX8B'><center id='yvX8B'></center></pre></bdo></b><th id='yvX8B'></th></span></q></dt></tr></i><div id='yvX8B'><tfoot id='yvX8B'></tfoot><dl id='yvX8B'><fieldset id='yvX8B'></fieldset></dl></div>
      1. <tfoot id='yvX8B'></tfoot>
      2. 将 ipad 应用程序转换为 iphone.通用应用

        Convert ipad application to iphone. Universal app(将 ipad 应用程序转换为 iphone.通用应用)
        <i id='lNFdA'><tr id='lNFdA'><dt id='lNFdA'><q id='lNFdA'><span id='lNFdA'><b id='lNFdA'><form id='lNFdA'><ins id='lNFdA'></ins><ul id='lNFdA'></ul><sub id='lNFdA'></sub></form><legend id='lNFdA'></legend><bdo id='lNFdA'><pre id='lNFdA'><center id='lNFdA'></center></pre></bdo></b><th id='lNFdA'></th></span></q></dt></tr></i><div id='lNFdA'><tfoot id='lNFdA'></tfoot><dl id='lNFdA'><fieldset id='lNFdA'></fieldset></dl></div>

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

          <tbody id='lNFdA'></tbody>
      3. <tfoot id='lNFdA'></tfoot>

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

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

                  本文介绍了将 ipad 应用程序转换为 iphone.通用应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  将 iPad 应用程序转换为 iPhone-通用应用程序.

                  Convert iPad application to iPhone- Universal app.

                  我已经有一个 iPad 应用程序,现在我想为那个 iPad 应用程序制作一个通用应用程序.

                  I already have one iPad application, now I want to make a universal app of that iPad application.

                  如何转换?是否可以?还是我必须启动一个新应用?

                  How to convert? Is it possible? Or do I have to start a new app?

                  推荐答案

                  在 Interface Builder 中打开您的项目.单击Targets"旁边的显示三角形,然后右键单击目标并选择Upgrade Current Target for iPad...".

                  Open up your project in Interface Builder. Click on the disclosure triangle next to "Targets", then right-click on the target and choose "Upgrade Current Target for iPad...".

                  然后阅读 iPad 编程指南,尤其是 开始你的项目.

                  Then read the iPad Programming Guide, especially the section Starting Your Project.

                  我现在明白了——从 iPad 到 iPad/iPhone.

                  I see now -- iPad to iPad/iPhone.

                  我认为您会执行以下操作:

                  I think you would do something like the following:

                  1. 为 iPhone 创建一个 .xib主窗口/应用程序委托/等,以对应您现有的 .xibiPad.
                  2. 在您的信息列表中添加一个条目:NSMainNibFile,其值为您的新 iPhone xib 的名称
                  3. 转到您的构建设置并设置基础 SDK 到 4.1(或者 4.0,如果你仍然安装旧版 SDK)
                  4. 保持您的 iOS 部署目标如果您只是在 3.2 构建设置担心 iPhone 和 iPod涉及 4.x.
                  5. 设置目标设备系列构建设置为 iPhone/iPad
                  6. 开始重构您的代码以创建两个不同的代码路径,一个一个用于 iPhone,一个用于 iPad,其中合适.
                  1. Create a .xib for the iPhone for the Main Window/App Delegate/etc, to corresspond your existing .xib for iPad.
                  2. Add an entry in your info plist: NSMainNibFile, with the value of the name of your new iPhone xib
                  3. Go to your build settings and set the Base SDK to 4.1 (or 4.0 if you still have the older SDK installed)
                  4. Keep your iOS Deployment Target build setting at 3.2 if you're only worried about iPhones and iPod Touches with 4.x.
                  5. Set the Targeted Device Family build setting to iPhone/iPad
                  6. Start refactoring your code to create two different code paths, one for iPhone and one for iPad, where appropriate.

                  这篇关于将 ipad 应用程序转换为 iphone.通用应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  How to add and get the values from .plist in iOS(如何在 iOS 中从 .plist 添加和获取值)
                  <legend id='ri8lU'><style id='ri8lU'><dir id='ri8lU'><q id='ri8lU'></q></dir></style></legend>
                    <tbody id='ri8lU'></tbody>

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

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

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