Can I tell if the iPhone has a passcode?

Posted by tewha on Stack Overflow See other posts from Stack Overflow or by tewha
Published on 2010-03-30T17:38:59Z Indexed on 2010/03/30 17:43 UTC
Read the original article Hit count: 235

Filed under:
|
|

I'm developing an application that asks for a PIN when you start it. That's not great, but I can live with it. The problem is I'm being asked to ask for the PIN each time the phone wakes from sleep, too. Combined with the OS asking for its passcode, it's too much.

Is there any legitimate way to detect if the phone has a passcode required for waking, so I can skip requiring a PIN in this case? I don't want to know the PIN and I don't actually care if it was locked (for instance, if the phone was asleep very briefly), I just want to know that the data is in some way "protected."

© Stack Overflow or respective owner

Related posts about iphone

Related posts about lock