Win*_*hen 1 iphone screen power-saving
我正在开发一款简单的游戏,UIAccelerometer无需任何屏幕点击交互.在默认模式下,屏幕会定期进入省电模式.如何使屏幕在应用程序处于活动状态的整个时间内保持活动状态?
UIAccelerometer
mar*_*cus 6
使用[UIApplication sharedApplication].idleTimerDisabled = YES防止iPhone进入睡眠模式.
[UIApplication sharedApplication].idleTimerDisabled = YES
归档时间:
14 年,6 月 前
查看次数:
1266 次
最近记录: