I have an application which works in a hands busy environment so the user rarely touches the device. Of course, the phone goes into auto-lock and my app stops working. I used this code:
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
to prevent the device and that is fine. However, I would still like the screen to auto-dim. The above code keeps the screen from auto-dimming as well as auto-locking.
This question shows me how I can dim the screen manually, and that just may be a good enough solution. But I'd rather use system settings, not app settings.
So how can I prevent auto-lock while still getting the auto-dim?