开发者

How can we get the iPhone screen to stay active, instead of going into the power saving mode?

I am working on a simple game that requires UIAccelerometer without any screen tapping interaction. In the defau开发者_开发问答lt mode, the screen goes into a power saving mode periodically. How can I make the screen to stay active throughout the entire time what the app is active?


Use [UIApplication sharedApplication].idleTimerDisabled = YES to prevent the iPhone to go to sleep-mode.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜