iPhone – phone goes to sleep even if idleTimerDisabled is YES

I set and un-set this property throughout my app using:

[UIApplication sharedApplication].idleTimerDisabled = YES;

Setting this where you’re having trouble could fix it, though it might be a bit of a band-aid solution.

Leave a Comment