简体   繁体   中英

Can i change the action name in Touch ID pop-up from “Enter password” to “Enter passcode”?

在此处输入图片说明

In our application we need "Enter Passcode", but by default TouchID pop-up shows "Enter password" when user touchID authentication failed.This may confuse users because the same user has another password for different purpose.

Can I change this?

您无法更改这些按钮的标题,您只能通过evaluatePolicy:localizedReason:reply:^(BOOL success, NSError *error)方法的localizedReason参数更改弹出窗口的文本。

Yes, you can change it with:

 let authenticationContext = LAContext()
 authenticationContext.localizedFallbackTitle = "Enter passcode"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM