gpt4 book ai didi

iOS 进入深度 sleep 需要多长时间?

转载 作者:行者123 更新时间:2023-11-28 17:57:38 25 4
gpt4 key购买 nike

我很久以前听说过,你的 iOS 屏幕锁定后,它会在一段时间后进入深度 sleep 模式。在此模式下,应用程序无法再执行任何操作或触发 NSTimer。进入这种深度 sleep 模式之前是否有特定的持续时间?

注意:伙计们,请不要只用链接回答。提取一些您找到的信息,然后再将它们放在这里。如果您知道答案就在这些链接中,那就不难了,对吧?

最佳答案

看看下面问题的答案,我想它解释了你在找什么......

NSTimer events do no occur when screen locked on iOS 5

也看看这个...

Is it possible to distinguish between locking the device and sending an app to background?

One solution, it would appear, is to play your sound when your timer fires, and in the interim, play a silent sound continuously in order to prevent the iPhone from sleeping. A hack, but at least in this case not a completely ugly hack since using a sound in order to keep the iPhone awake in order to play a sound has a kind of symmetry.

关于iOS 进入深度 sleep 需要多长时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12741507/

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