使用画外音滑动手势识别器 [英] Swipe Gesture Recogniser using voiceover

查看:25
本文介绍了使用画外音滑动手势识别器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些手势识别器(ala Clear)的视图.我应该只为用户语音添加按钮吗?

I have a view with a few gesture recognisers (ala Clear). Should I add buttons only for voice over users instead?

我想过使用提示说三指向右滑动以进行编辑.向左滑动以删除.向上创建一个新的".但苹果似乎不鼓励这样做.甚至苹果在 textFields 等上使用双击编辑",我不知道他们为什么不鼓励这样做.

I thought about using the hint to say something like "3 Finger Swipe Right to Edit. Left to Delete. Up to Create a new one." but it seems like Apple discourages that. Even apple uses "Double Tap to Edit" on textFields and such and I have no idea why they discourage that.

不包括动作或手势的名称.提示不会告诉用户如何执行该操作,而是告诉用户该操作发生时会发生什么.因此,请勿创建诸如点击播放歌曲"、点击购买项目"或滑动删除项目"等提示.这一点尤其重要,因为 VoiceOver 用户可以使用 VoiceOver 特定的手势与您的应用程序中的元素进行交互.如果你在提示中命名不同的手势,那会很混乱.

Does not include the name of the action or gesture. A hint does not tell users how to perform the action, it tells users what will happen when that action occurs. Therefore, do not create hints such as "Tap to play the song," "Tapping purchases the item," or "Swipe to delete the item." This is especially important because VoiceOver users can use VoiceOver-specific gestures to interact with elements in your application. If you name a different gesture in a hint, it would be very confusing.

推荐答案

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

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.

这篇关于使用画外音滑动手势识别器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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