How can we check if the iphone has gone into a standby mode and returns from that mode programmaticlly? I am using this to force it not to sleep during the game:
application.idleTimerDisabled = YES;
But if the user uses the sleep button it messes up with my game state in my code. Any help would be appreciated, thanks in advanced.