Jul 30
If your game do not require the user to interactive with the touch screen, say for example you only use accelerometer for moving your sprite. You’ll notice that the iPhone will go sleeping after a while. We don’t like this, so, you can add this to prevent it from sleeping:

 Objective-C |  copy code |? 
1
[UIApplication sharedApplication].idleTimerDisabled = YES;

That will be all.