我为用户提供了使用 Touch ID 的选项,并发现当用户输入不正确的密码或选择输入密码时,Edovia 的 Screens 会显示设备的 PIN 输入 View Controller 。我已经在文档和 Google 中搜索了可靠的示例或方向,可以让我呈现相同的密码输入方法,但我却空手而归。
有人知道我如何访问此屏幕吗?
最佳答案
它适用于 iOS 9.0 及更高版本。
您可以看到 LocalAuthentication
here 的更改.
在LAPolicy
中,我们有一个新值:
LAPolicyDeviceOwnerAuthentication NS_ENUM_AVAILABLE(10_11, 9_0) = kLAPolicyDeviceOwnerAuthentication
您可以在LAContext.h
中查看LAPolicyDeviceOwnerAuthentication
的文档:
Touch ID authentication dialog behaves similarly as the one used by LAPolicyDeviceOwnerAuthenticationWithBiometrics. However, instead of "Enter Password" button there is "Enter Passcode" button which, when tapped, switches the authentication method and allows users to enter device passcode. Passcode authentication will get locked after 6 unsuccessful attempts with progressively increased backoff delay.
关于touch-id - Touch ID 密码回退 : Device Pin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33048276/