【发布时间】:2016-01-29 14:09:56
【问题描述】:
【问题讨论】:
-
以上问题有答案吗?
【问题讨论】:
您可以为后备按钮提供文本,如果触控 ID 失败(用于本地化身份验证),该按钮将显示。您可以通过在 LAContext 上设置本地化FallbackTitle 来做到这一点
LAContext *context = [[LAContext alloc] init];
// Set text for the localized fallback button.
context.localizedFallbackTitle = @"Enter PIN";
KeychainTouchID 示例显示此 https://developer.apple.com/library/ios/samplecode/KeychainTouchID/Introduction/Intro.html 在 AAPLLocalAuthenticationTestsViewController 中查看
当点击回退按钮时,您会在处理程序中获得 LAErrorUserFallback 作为错误类型(LAError.UserFallback for swift)。
【讨论】: