Can I tell if the iPhone has a passcode?

后端 未结 2 1354
小蘑菇
小蘑菇 2021-01-05 15:22

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

相关标签:
2条回答
  • 2021-01-05 15:39

    I created a very ugly workaround for this same issue.

    0 讨论(0)
  • 2021-01-05 15:51

    For AppStore or not? If the former, no way.


    In 3.x, the passcode is stored on the keychain, that means you have to get into the SpringBoard process to determine whether a passcode exists and nonempty. If you are in SpringBoard, calling -[SBAwayController isPasswordProtected] will determine if the device has passcode.

    0 讨论(0)
提交回复
热议问题