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

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

      <tfoot id='tAOvc'></tfoot>

      <legend id='tAOvc'><style id='tAOvc'><dir id='tAOvc'><q id='tAOvc'></q></dir></style></legend>
      <i id='tAOvc'><tr id='tAOvc'><dt id='tAOvc'><q id='tAOvc'><span id='tAOvc'><b id='tAOvc'><form id='tAOvc'><ins id='tAOvc'></ins><ul id='tAOvc'></ul><sub id='tAOvc'></sub></form><legend id='tAOvc'></legend><bdo id='tAOvc'><pre id='tAOvc'><center id='tAOvc'></center></pre></bdo></b><th id='tAOvc'></th></span></q></dt></tr></i><div id='tAOvc'><tfoot id='tAOvc'></tfoot><dl id='tAOvc'><fieldset id='tAOvc'></fieldset></dl></div>
      1. 如何在 iPhone4 sdk 中退出(退出)应用程序

        时间:2023-10-23

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

                <tbody id='oevh3'></tbody>
                <bdo id='oevh3'></bdo><ul id='oevh3'></ul>

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

              • <tfoot id='oevh3'></tfoot>
                  <i id='oevh3'><tr id='oevh3'><dt id='oevh3'><q id='oevh3'><span id='oevh3'><b id='oevh3'><form id='oevh3'><ins id='oevh3'></ins><ul id='oevh3'></ul><sub id='oevh3'></sub></form><legend id='oevh3'></legend><bdo id='oevh3'><pre id='oevh3'><center id='oevh3'></center></pre></bdo></b><th id='oevh3'></th></span></q></dt></tr></i><div id='oevh3'><tfoot id='oevh3'></tfoot><dl id='oevh3'><fieldset id='oevh3'></fieldset></dl></div>
                • 本文介绍了如何在 iPhone4 sdk 中退出(退出)应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何退出 iPhone4 应用程序?当我使用 exit(0) 时,应用程序进入后台.我想退出应用而不是将其发送到后台.

                  How can I quit iPhone4 app? When I use exit(0) the app goes in the background. I want to quit the app instead of sending it to the background.

                  推荐答案

                  iPhone 应用不应该有退出按钮.用户按主按钮退出.

                  iPhone apps shouldn't have a quit button. The user quits by pressing the main button.

                  来自 Apple 的文档:(http://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/MobileHIG.pdf)

                  From Apple's docs: (http://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/MobileHIG.pdf)

                  人们通过打开另一个应用程序退出 iPhone 应用程序.特别要注意的是,人们不会点击应用程序关闭按钮或从菜单中选择退出.在 iOS 4.0 及更高版本以及某些设备上,退出应用程序会在后台进入暂停状态.所有 iPhone 应用程序都应该:

                  People quit an iPhone application by opening a different application. In particular, note that people don’t tap an application close button or choose Quit from a menu. In iOS 4.0 and later, and on certain devices, the quitting application moves to a suspended state in the background. All iPhone applications should:

                  • 随时准备退出.因此,应尽快并尽可能多地保存用户数据.
                  • 在停止时尽可能详细地保存当前状态.例如,如果您的应用程序显示滚动数据,保存当前滚动位置.

                  iPhone 应用程序不应该以编程方式退出,因为这样做对用户来说就像是崩溃.但是,有时外部环境可能会阻止您的应用程序按预期运行.处理此问题的最佳方法是显示一个有吸引力的屏幕来描述问题并建议用户如何纠正它.这从两个方面帮助用户:

                  iPhone applications should never quit programmatically because doing so looks like a crash to the user. There may be times, however, when external circumstances prevent your application from functioning as intended. The best way to handle this is to display an attractive screen that describes the problem and suggests how users can correct it. This helps users in two ways:

                  • 它提供的反馈让用户确信您的应用程序没有任何问题
                  • 它让用户能够控制自己,让他们决定是否要采取纠正措施并继续使用您的应用程序或按主页按钮并打开其他应用程序

                  这篇关于如何在 iPhone4 sdk 中退出(退出)应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:创建一个从 iphone 屏幕创建视频并从耳机/音频输入添加音频的应用程序 下一篇:如何将 UIView 转换为 UIImage?

                  相关文章

                  <legend id='9hg05'><style id='9hg05'><dir id='9hg05'><q id='9hg05'></q></dir></style></legend>

                • <small id='9hg05'></small><noframes id='9hg05'>

                • <tfoot id='9hg05'></tfoot>

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