obiwahn
obiwahn

Reputation: 71

How to get the auto-lock setting from general settings on the iPhone?

Any chance?

I want to know if it is set from "1 - 5 minutes" or set to "never".

Thank you!

Upvotes: 1

Views: 508

Answers (1)

Kyle
Kyle

Reputation: 443

Apple won't let you directly access system settings like that. If you are trying to prevent the screen from locking, you can always do something like this:

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

As far as I know, that is the only thing that you can do to interact with the auto-lock.

Upvotes: 2

Related Questions