I am using this in my appdelegate\'s applicationDidFinishLaunching: method to make sure the iPhone doesn\'t go to sleep during the time the app is open
[appl
Set this property in the application delegate's +initialize method, e.g.:
+initialize
+ (void) initialize { if ([self class] == [MyAppDelegate class]) { UIApplication* myApp = [UIApplication sharedApplication]; myApp.idleTimerDisabled = YES; } }