ios - 密码字段未显示在 localAuthenticationContext
问题描述
localAuthenticationContext.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reasonString) { success, error in
// a popup is shown but there is no password option. Only cancel button
});
我想显示带有取消和密码选项的弹出窗口。假设设备密码已启用。
解决方案
你的要求是不可能的。您应该尝试至少 1 touchId 身份验证
推荐阅读
- c++ - 如何创建一个二维数组,其中所有行的大小都不相同,并且用户将指定各个行将具有多少个元素?
- powerbi - 在 power bi 中定义今天的日期
- javascript - 如何在 Javascript 的错误消息中包含表情符号?
- c# - 如何使用线程池
- javascript - 如何从第一页删除上一个按钮和从最后一页删除下一个按钮?
- mongodb - 阻止 Azure CosmosDB 的客户端应用创建新数据库
- database - 如何引用属于特定文档的 Firebase 服务器中的变量?
- c - C 中无法解释的溢出
- sql - 如何在 SQL 中实现双向排序?
- python - 满足条件后如何向多个客户端发送响应?