Disable auto-lock from app

Users want Auto-Lock to be disabled using my navigation utility. Can I control automatic locking from an application?

[also: "How to stop the iPad from sleeping or pause"]

+3
source share
1 answer

This will prevent the dull screen and go into sleep mode.

[UIApplication sharedApplication].idleTimerDisabled = YES;
+15
source

Source: https://habr.com/ru/post/1713345/


All Articles