[laContecxt evaluatePolicy:LAPolicyDeviceOwnerAuthentication
localizedReason:@"My Reason to be displayed on face id prompt"
reply:^(BOOL success, NSError *error) {
if (success) {
// User authenticated successfully, take appropriate action
} else {
// User did not authenticate s
}
}];您好,我已经使用了相同的上述方法,问题是我提供的本地化原因没有显示出来
在Touch Id的情况下,它显示在哪里?您能帮助解决这个问题吗?
发布于 2018-04-13 14:48:15
表面ID评估提示似乎没有使用任何localizedReason参数,但尽管如此,该参数不能为nil或为空。如果要自定义Face ID隐私权限提示在其消息文本中显示(一次)的文本,请在Info.plist文件中为NSFaceIDUsageDescription密钥添加字符串值。
https://stackoverflow.com/questions/48113719
复制相似问题