I have an app and this app has a setting for Sleep mode (Sleep mode on / off)
For Sleep mode 'on', I have this code :
[UIApplication sharedApplication].idleTimerDisabled = NO;
But Sleep mode is not working. Of course, the device setting 'Auto-Lock' is 1 Minute.
I want to know how to enable sleep mode.