Stopping the iPhone going to sleep

So, my game just uses the tilt sensors to move around and yet after a few seconds the iPhone would dim the screen causing the user to tap the screen to bring it back to life. This was annoying and it took me a while to discover how to stop it. So, if you are having the same issues then place the following line in your app delegate:

application.idleTimerDisabled = YES;

Seems simple now doesn’t it :)

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

 
The game goes here
The game goes here
The game goes here
The game goes here