且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用画外音滑动手势识别器

更新时间:2022-11-10 19:43:12

是的,您应该包含备用按钮.

Yes you should include alternate buttons.

您误解了 Apple 免责声明.免责声明指的是 VoiceOver 将接管触摸屏这一事实.一旦 VoiceOver 接管屏幕,它就会决定如何将手势传递给您的应用程序.因此,当它现在可以激活按钮时,用户会突出显示该按钮,然后双击.但是,VoiceOver 不需要坚持这一点(尽管它们很可能会坚持一段时间).但是,通知用户这不是开发人员的工作.VoiceOver 通过耳标、特征和其他依赖于 AT 的指令通知用户这一点.如果开发人员要在提示中包含此信息,它可能会因 AT 中的更改而无效,然后在设备版本或其他 AT(例如盲文板)之间不一致.

You're misunderstanding the Apple Disclaimer. The disclaimer refers to the fact that VoiceOver is going to take over the touch screen. Once VoiceOver takes over the screen, it decides how to pass gestures to your application. So as it works right now to activate a button, a user would highlight the button, and then double tap. But, VoiceOver doesn't need to stick to this (though it is highly likely that they will for some time). However, it is not a developers job to inform users of this. VoiceOver informs users of this through earcons, traits, and other instructions that are dependant on the AT. If a developer were to include this information in the hint, it could be invalidated by a change in the AT, and then be inconsistent across device versions, or other ATs such as braille boards.

您不仅可能会描述 VoiceOver 不允许的手势(因为它会捕获屏幕手势.但是,即使您应用了允许直接交互特性,您也可能会描述残疾人无法使用的手势)执行.无论哪种方式,包括实现给定交互的另一种方法都是更好的解决方案.

Not only would you be potentially describing gestures that VoiceOver doesn't allow (given that it captures screen gestures. But, even if you were to apply the allows direct interaction trait, you may be describing gestures that people with disabilities can not perform. Either way, including another method of achieving the given interaction is the better solution.