Which methods are called when user presses home button and double presses it again to return

*爱你&永不变心* 提交于 2019-12-04 04:25:27

问题


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


回答1:


applicationDidEnterBackground
applicationWillEnterForeground

These all called in the app delegate

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



来源:https://stackoverflow.com/questions/5445792/which-methods-are-called-when-user-presses-home-button-and-double-presses-it-aga

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!