How-To: Stop iPhone going into sleep mode (iPhone SDK)
The iPhone OS will attempt to save battery power by using its automatic sleep timing function. If the system doesn’t detect any ‘touches’ it will dim the screen and eventually turn it off. Sometimes you don’t want this to occur – if you are creating a game or application that uses the accelerometer for instance. [...]
