打开 VoiceOver,当焦点出现在 UIButton
上时/UITableViewCell
/UICollectionViewCell
, VoiceOver 读取它的辅助功能标签一次。
然后只要用户双击选择 UIButton
/UITableViewCell
/UICollectionViewCell
,除了对 UIButton
执行操作(导航等)外,VoiceOver 再次读取相同的辅助功能标签/UITableViewCell
/UICollectionViewCell
选择。
我搜索了很多但无法找到停止/禁用 VoiceOver 阅读 UIButton
上的辅助功能标签的方法|/UITableViewCell
/UICollectionViewCell
选择。
如有任何帮助,我们将不胜感激。
最佳答案
swift 5
对我有用的是设置 myElementIWantSilent.accessibilityTraits = .none
编辑:我应该注意到这些也存在:
viewContainingSilentElement.isAccessibilityElement = true
viewContainingSilentElement.accessibilityTraits = .image
viewContainingSilentElement.accessibilityLabel = "some text i want read aloud"
iPhone 8
iOS 14.5.1
XCode 12.5
关于ios - 在 UIButton/UITableViewCell/UICollectionViewCell 选择上禁用 VoiceOver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37141598/