views:

248

answers:

1

Users want autolock turned off while using my navigation utility. Is it possible to control autolock from an application in iPhone SDK 3.0?

+1  A: 

This will prevent the screen to dim and go to sleep.

[UIApplication sharedApplication].idleTimerDisabled = YES;
willi