gpt4 book ai didi

iphone - iOS : Detecting when the multitasking bar has been opened

转载 作者:行者123 更新时间:2023-12-03 20:57:04 25 4
gpt4 key购买 nike

我希望能够检测何时使用多任务栏(双击主页按钮)。这可能吗?

注意:我不是在询问检测应用程序何时切换到后台,而是在弹出栏时询问,例如控制方向锁或 iPod 控件。

最佳答案

来自 applicationWillResignActive 的 Apple 文档:

This method is called to let your application know that it is about to move from the active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. An application in the inactive state continues to run but does not dispatch incoming events to responders.

当用户双击主页按钮时调用此方法。这可能是暂停游戏的好地方。

关于iphone - iOS : Detecting when the multitasking bar has been opened,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4264292/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com