当用户按下主页按钮并再次双击它以返回时,调用哪些方法 [英] Which methods are called when user presses home button and double presses it again to return

查看:138
本文介绍了当用户按下主页按钮并再次双击它以返回时,调用哪些方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道当用户按下主页按钮时调用哪些方法(事件)并再次按下它以返回我的应用程序。

I want to know which methods (events) are called when user presses home button and double presses it again to return to my app.

推荐答案

applicationDidEnterBackground
applicationWillEnterForeground

这些所有在app app delegate中调用

These all called in the app delegate

所有细节都可以在这里找到: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Reference.html

All details can be found here: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Reference.html

这篇关于当用户按下主页按钮并再次双击它以返回时,调用哪些方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆