Tuesday, 5 July 2011

How to prevent the screen from sleeping

Learned how to prevent the screen from sleeping from Nick's SpaceBubble code, and his comment about AngryBirds is quite funny...



// Prevent the screen from sleeping!  Important!!  (AngryBirds doesn't do this btw...annoying)
[application setIdleTimerDisabled:YES];

No comments:

Post a Comment