简体   繁体   中英

How to implement Z Gesture to dismiss an alert or go to previous screen in voiceOver for iOS?

To dismiss an alert while in voiceOver mode, Z gesture is used. Anyone please let me know how to implement that for my project or provide a link which has an example for how to implement that in objective-c?

To dismiss an alert view thanks to the scrub gesture, override accessibilityPerformEscape() in the alert view itself .

I've provided the implementation for this question but it's written in swift : the code isn't complex at all so that you can easily translate it into ObjC.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM