本文介绍了VoiceOver可访问虚拟乐器iPhone应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到盲人用户的意见,我的一些声音和音乐相关应用程序只能与VoiceOver关闭。这是常见的还是可以接受的?

I have received comments from blind users that some of my sound and music related apps only work with VoiceOver off. Is this common and/or acceptable?

在iOS设备上启用VoiceOver辅助功能,是否可以启用音乐键盘或鼓垫触摸区域,以便立即播放音乐声音,而不是VoiceOver提示当敲击键盘键或虚拟鼓组(等)时?只需在UIView子视图中设置UIAccessibilityTraitPlaysSound AccessibilityTrait似乎没有这样做。我使用VoiceOver,而不是启用VoiceOver,而不是钢琴或鼓声。

With VoiceOver Accessibility enabled on an iOS device, is it possible to enable a music keyboard or drum pad touch area so that music sounds can be played immediately, instead of VoiceOver prompts, when a keyboard key or virtual drum set (etc.) is tapped? Just setting the UIAccessibilityTraitPlaysSound AccessibilityTrait on a UIView subview doesn't seem to do it. I get VoiceOver clicking instead of piano or drum sounds with VoiceOver enabled.

盲人可以完全关闭VoiceOver,但是所有其他按钮(仪器选择,配置,帮助等)和/或控件将不再具有VoiceOver帮助。

A blind user can turn VoiceOver completely off, but then all the other buttons (Instrument selection, Configuration, Help, etc.) and/or controls will no longer will have VoiceOver assistance.

推荐答案

我现在可以回答我自己的问题。

I can now answer my own question.

iOS 5已经为此需要添加了一个新的API:

iOS 5 has a added a new API exactly for this need:

[ mySubView setAccessibilityTraits: UIAccessibilityTraitAllowsDirectInteraction ];

将禁用VoiceOver仅用于该UIView子视图,但保留其他子视图(其他按钮等)不受影响。这样,即使启用了VoiceOver,也可以为应用程序的响应式触摸处理程序更适合用于键入指定子视图的乐器,并为指定子视图之外的应用程序UI的其他部分提供帮助。

will disable VoiceOver just for that UIView subview, but leave other subviews (other buttons, etc.) unaffected. That allows an app to get responsive touch handlers more suitable for keying a musical instrument for the specified subview, even with VoiceOver enabled and providing assistance for other portions of the app's UI outside the specified subview.

这篇关于VoiceOver可访问虚拟乐器iPhone应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 08:13