ios - localAuthenticationContext 中未显示密码字段

标签 ios swift

localAuthenticationContext.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reasonString) { success, error in
    // a popup is shown but there is no password option. Only cancel button
});

我想显示带有取消和密码选项的弹出窗口。假设设备密码已启用。

最佳答案

你的要求是不可能的。您应该至少尝试 1 次 touchId 身份验证

参见 https://developer.apple.com/documentation/localauthentication/lapolicy/deviceownerauthentication?changes=_2

关于ios - localAuthenticationContext 中未显示密码字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51425623/

相关文章:

ios - 如何以编程方式扩展/调出搜索栏?

ios - ionic 电容器 iOS 不尊重黑暗模式

iphone - 像这样实现 Objective C init 方法有什么意义呢?

ios - 如何更改 iOS 中分组的 UITableView 样式的背景颜色?

ios - 向 WKWebView 发送数据

swift - 使用 FileManager 复制文件时出错(CFURLCopyResourcePropertyForKey 失败,因为它传递了一个没有方案的 URL)

ios - 使用arc4random生成十个随机数

ios - 有没有办法知道 iOS 键盘是否真的被隐藏了(被用户解雇了)?

javascript - 空事件监听器 : Is this ok?

swift - 如何在 swift UIWebView 中重新加载 gif