Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的游戏中,当 iOS 进入空闲状态时,精灵会闪烁。为了解决这个问题,我将空闲计时器设置为禁用,但应用程序在某些情况下仍然可以空闲,例如,应用程序进入睡眠状态,然后由用户切换回来。
有什么方法可以通过一些 API 主动唤醒 ios?
除了:_
[UIApplication sharedApplication].idleTimerDisabled = YES;
只有用户可以控制您的应用何时发送到后台/前台/睡眠。