I have managed to ensure that the iPhone doesn\'t auto-lock using:
[[ UIApplication sharedApplication ] setIdleTimerDisabled: YES ];
Bu
in iOS 7 and later:
yourViewController.view.tintAdjustmentMode = UIViewTintAdjustmentModeDimmed;