Prevent iPhone from going to sleep during play

My game is controlled purely by tilt, so the iPhone goes to sleep after a couple minutes even if a player is actively playing the game. How do I keep the iPhone awake?

Has Code:

http://answers.unity3d.com/questions/20685/i-want-to-prevent-android-phone-from-going-to-sleep-using-my-code

Warning:

http://forum.unity3d.com/threads/70054-possible-to-block-quot-sleep-quot-and-quot-home-quot-buttons-on-iPhone