【问题标题】:Changing the text of the Cancel button in the default TouchID dialog更改默认 TouchID 对话框中“取消”按钮的文本
【发布时间】:2015-02-27 00:32:48
【问题描述】:

我的 iOS 应用使用 TouchID 来解锁一些安全服务。设计者不希望取消按钮的文本阅读取消,而是阅读“稍后设置”。我可以看到如何更改默认“输入密码”按钮的文本,这很简单:

LAContext *context = [[LAContext alloc] init];
context.localizedFallbackTitle = @"Speak Friend and Enter";

但我没有看到可以设置以更改取消按钮标签的 LAContext 属性。我该怎么做?

【问题讨论】:

  • 我认为您不能更改取消按钮的文本。我也试过了。如果你找到了解决办法,请告诉我。

标签: ios touch-id


【解决方案1】:

是的,您可以从 10.0 版开始。

文档:

LocalizedCancelTitle

使用示例:

LAContext *myContext = [[LAContext alloc] init];

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 10){
     [myContext setLocalizedCancelTitle:@"Your text"];
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-02
    相关资源
    最近更新 更多