Disable standby mode in iOS

To prevent the iPhone to enter the sleep mode after a certain time, just add the following line:

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];