1. <legend id='Bkg2S'><style id='Bkg2S'><dir id='Bkg2S'><q id='Bkg2S'></q></dir></style></legend>
        <bdo id='Bkg2S'></bdo><ul id='Bkg2S'></ul>
    2. <small id='Bkg2S'></small><noframes id='Bkg2S'>

    3. <tfoot id='Bkg2S'></tfoot>

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

      在 iOS4 中退出应用程序

      quit app in iOS4(在 iOS4 中退出应用程序)
        <bdo id='gm57C'></bdo><ul id='gm57C'></ul>

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

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

            • <tfoot id='gm57C'></tfoot>
                  <tbody id='gm57C'></tbody>
              1. 本文介绍了在 iOS4 中退出应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个旧应用程序,它在各种视图的 viewDidLoad 中进行了许多 UI 初始化工作.在 iOS4 的主页按钮中,只需将应用程序置于后台,这样重新启动应用程序时就不会调用 viewDidLoad.

                I have an old app which did many UI initialization work in viewDidLoad of various views. In iOS4 home button just put the app in background so viewDidLoad won't get called when re-launching the app.

                我不想将这些初始化过程放在 viewWillAppear 中,因为每次视图出现时都不需要重新初始化数据.

                I don't want to put those initialization procedures in viewWillAppear as it is unnecessary to re-initialize the data every time the view appear.

                当用户按下主页按钮时,我如何才能完全退出我的应用程序?或任何简单的方法来重新加载位于 tabBarController 内的视图控制器?

                How can I completely quit my app when user press the home button? or any simple way to reload the view controllers that sit inside a tabBarController?

                谢谢.

                推荐答案

                在你的应用的 Info.plist 文件中有一个键名为 UIApplicationExitsOnSuspend,将其设置为布尔值YES,这实际上会将主页按钮的功能恢复到iOS4之前的状态,并在点击主页按钮时完全退出您的应用程序.

                There is a key in your app's Info.plist file called UIApplicationExitsOnSuspend, set it to the boolean YES, which will essentially revert the home button's functionality to pre-iOS4 and completely exit your app when the home button is tapped.

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

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

                相关文档推荐

                Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                Resume game cocos2d(恢复游戏 cocos2d)
                Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)

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

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

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

                        • <tfoot id='NbEco'></tfoot>