I have been reading through questions* and answers about how to stop an iOS device from suspending, starting with the most general to more specific questions that discuss problems with this code:
[UIApplication sharedApplication].idleTimerDisabled = YES;
Some suggest turning it to NO
before turning it on (sounds bogus but who knows), some suggest that you need to turn it on often (what?), and other such advice. Also, most of the advice is from iOS 3.0.
Is anybody using this in iOS 5, and what are the caveats with its use? I do not want the device to suspend (auto-lock) at any time if my app is in the foreground (battery be damned). Will idleTimerDisabled
do this?
* A lot of info out here: https://stackoverflow.com/search?q=auto-lock+ios