views:

69

answers:

2

My app shows a picture and then an mp3 plays over it, describing the picture. The trouble is that the backlight on the screen reduces after 40 seconds or so, if the phone is not interacted with. How do I prevent the fade?...so that my picture doesn't go dark when they are looking at it.

+1  A: 

Set UIApplication's idleTimerDisabled property to YES.

Johan Kool
+5  A: 
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
joeynelson
Yes, but don't forget to enable the idle timer after your mp3 is done, if left unattended the battery will run down.
progrmr