iOS辅助功能会隐藏“ textField,双击以进行编辑”公告 [英] iOS Accessibility hide the "textField, double tap to edit" announcement

查看:340
本文介绍了iOS辅助功能会隐藏“ textField,双击以进行编辑”公告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有pickerView的textField作为inputView。

I have a textField with a pickerView as the inputView.

现在,当我打开画外音并选择textField时,画外音将显示为:数量: 3(textField的内容),然后是 textField,然后是双击以编辑。

Now when I have the voiceover on and select the textField, the voiceover will read this: "Quantity: 3 (content of the textField)", then "textField", then "Double tap to edit".

是否仍然存在,使画外音仅读取内容并跳过以下 textField。双击编辑?

Is there anyway to make the voiceover just reads the content and skip the following "textField. Double tap to edit"?

我试图给textField另外一个UIAccessibilityTraits / Hints,但它们不起作用。

I have tried to give the textField another UIAccessibilityTraits/Hints and they are not working.

谢谢! / p>

Thanks!

推荐答案

假设您的文本字段是UITextField的子类,那么您正在寻找静态文本特征。

Assuming your text field is a subclass of UITextField, you're looking for the static text trait.

UITextField* aTextField = .....
aTextField.accessibilityTraits |= UIAccessibilityTraitStaticText;

这篇关于iOS辅助功能会隐藏“ textField,双击以进行编辑”公告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆