gpt4 book ai didi

ios - Cocos2d 和 iOS : is there a way to stop the screensaver from starting in my game?

转载 作者:行者123 更新时间:2023-11-29 10:51:22 26 4
gpt4 key购买 nike

我想知道是否有办法在游戏运行时阻止屏幕保护程序(锁定屏幕)在 iOS 上启动?

我正在开发的游戏是在 Cocos2d for iOS 上。

我想实现的是:

"while my game is running I do not want the screensaver to start when normally it would trigger, for example when the user does not tap the screen for a while."

最佳答案

看这里: setIdleTimerDisabled

您要查找的属性实际上称为空闲计时器。如果上述方法不起作用,搜索它可能会帮助您找到更多信息。

关于ios - Cocos2d 和 iOS : is there a way to stop the screensaver from starting in my game?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20314931/

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