<tfoot id='qEC8p'></tfoot>

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

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

    1. <legend id='qEC8p'><style id='qEC8p'><dir id='qEC8p'><q id='qEC8p'></q></dir></style></legend>
      <i id='qEC8p'><tr id='qEC8p'><dt id='qEC8p'><q id='qEC8p'><span id='qEC8p'><b id='qEC8p'><form id='qEC8p'><ins id='qEC8p'></ins><ul id='qEC8p'></ul><sub id='qEC8p'></sub></form><legend id='qEC8p'></legend><bdo id='qEC8p'><pre id='qEC8p'><center id='qEC8p'></center></pre></bdo></b><th id='qEC8p'></th></span></q></dt></tr></i><div id='qEC8p'><tfoot id='qEC8p'></tfoot><dl id='qEC8p'><fieldset id='qEC8p'></fieldset></dl></div>
      1. 在 iOS 4.0 中退出应用程序

        Exit application in iOS 4.0(在 iOS 4.0 中退出应用程序)
        • <tfoot id='b9XvF'></tfoot>

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

                <tbody id='b9XvF'></tbody>

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

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

                  问题描述

                  在 iOS4.0 之前,单击 iPhone 上的主页按钮会退出应用程序,Apple 在其指南中规定不接受以编程方式退出应用程序.

                  Before iOS4.0 clicking the home button on iPhone exits the application, and Apple had in their guide that programmatically exiting the application was not accepted.

                  现在 iOS4.0 中的一切都发生了变化,单击主页按钮会使您的应用程序处于暂停模式(多任务处理).我认为应该有一个明确的方式让用户退出应用程序,例如退出按钮.

                  now everything changed in iOS4.0, clicking the home button puts your app in a suspended mode (multitasking).. and I think there should be a clear way for the user to exit the app, like an exit button.

                  现在可以用苹果了吗?怎么做?

                  is it now OK with apple? and how can it be done?

                  推荐答案

                  不还是不应该这样做.

                  您有不同阶段的处理程序,因此您应该这样做.手动退出没有意义.如果您重新启动应用程序,理想情况下它会从您停止的地方开始,因此可以通过恢复或启动并加载旧状态.

                  You have handlers for the different stages, so this is how you should do it. There's no point in exiting manually. If you restart the app, ideally it would start where you left off, so this is either by resuming or by starting and loading the old state.

                  没有理由退出.

                  编辑

                  因为这再次弹出:iOS 人机界面指南 说不要以编程方式退出".我们已经看到许多关于过去调用 exit() 的应用程序的报告.

                  As this keeps popping up again: iOS Human Interface Guidelines says "Don't Quit Programmatically". And we have seen many reports of apps that had calls to exit() in them in the past.

                  当然,通过在 Info.plist 文件中设置适当的键来退出而不是挂起完全没问题 - 但这不是专用的 UI 按钮,只是通过主页按钮执行程序退出的特定于应用程序的实现.

                  Exiting instead of suspending by setting the appropriate key in the Info.plist file is perfectly fine, of course - but that's not a dedicated UI Button, just application-specific implementation of program exit by the home button.

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

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

                  相关文档推荐

                  What values should I use for iOS boolean states?(我应该为 iOS 布尔状态使用什么值?)
                  How do I get NSJSONSerialization to output a boolean as true or false?(如何让 NSJSONSerialization 将布尔值输出为真或假?)
                  Is there any difference between bool, Boolean, and BOOL in Objective-C?(Objective-C 中的 bool、Boolean 和 BOOL 之间有什么区别吗?)
                  Set bool property of all objects in the array(设置数组中所有对象的布尔属性)
                  Convert String to Bool in Swift - via API or most Swift-like approach(在 Swift 中将 String 转换为 Bool - 通过 API 或大多数类似 Swift 的方法)
                  What is the correct way to proceed with this bool?(处理这个布尔值的正确方法是什么?)

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