Is there any way to create a custom VoiceOver gesture?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 00:03:43

问题


Is there any way to create a custom gesture in iOS specifically for VoiceOver users?

Thank you


回答1:


I think this MIGHT be possible. The iOS Mail app (at least in iOS 6) seems to contain custom Voiceover actions (you can swipe up or down to enable a "delete" operation on a mail item in the list).

My guess is (and I haven't verified this, is that if you add a swipe recogonizer only when UIAccessibilityIsVoiceOverRunning() returns true.

I haven't tested this yet.




回答2:


I'm almost certain that this is not possible. That said, the accessibility APIs allow you to do things like speak content when a view changes, so maybe you could use this?

You mentioned a gesture specifically for Voiceover users - if Voiceover users are the majority of your audience, then you could just provide a standard gesture, which Voiceover users could invoke by double tapping and holding to pass the gesture through, and then performing the gesture itself.

For example, to "pull to refresh" a Voiceover user would double tap, hold, then pull down.



来源:https://stackoverflow.com/questions/5540371/is-there-any-way-to-create-a-custom-voiceover-gesture

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!