I am working on a simple game that requires UIAccelerometer without any screen tapping interaction. In the default 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?
I am working on a simple game that requires UIAccelerometer without any screen tapping
Share
Use
[UIApplication sharedApplication].idleTimerDisabled = YESto prevent the iPhone to go to sleep-mode.