VoiceOver accessibility label for Touch ID

后端 未结 3 565
情歌与酒
情歌与酒 2021-01-21 00:42

I am trying to ensure that the iOS app that I am working on is accessible and am trying to implement VoiceOver to ensure this.

One strange thing that I cannot find any h

3条回答
  •  星月不相逢
    2021-01-21 01:28

    You can try this for a quick work around: Just give space between I and D

      NSString *label = @"Please authenticate your ID using the Touch ID";
      label.accessibilityLabel=@"Please authenticate your I D using the Touch I D";
    

    Also please note that you can only set accessibility to UIElements and you cannot set it to general variables. It doesn't make sense to set accessibility label for LAContext and to NSString.

    YOu need to set the accessibility label to UILabel or the element which you give the NSString to.

提交回复
热议问题