【问题标题】:iPhone accessibility on button with image带有图像的按钮上的 iPhone 可访问性
【发布时间】:2011-08-08 19:24:41
【问题描述】:

有人知道如何防止 VoiceOver 说出按钮图像文件名吗?

提前致谢!

【问题讨论】:

    标签: iphone cocoa-touch image button accessibility


    【解决方案1】:

    如果您为按钮设置了可访问的名称,Voiceover 将读取该名称而不是文件名。在http://developer.apple.com/accessibility找到确切信息

    【讨论】:

    • 我现在不在家,但我会再次对其进行测试,我设置了按钮的提示,但辅助功能画外音读取了图像文件名...您设置了哪些辅助功能属性?感谢回复
    【解决方案2】:
    self.button.accessibilityLabel = @"Your accessibility label";
    self.button.accessibilityTraits = UIAccessibilityTraitButton;
    

    希望有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-21
      相关资源
      最近更新 更多