简体   繁体   中英

iOS: Is there a way to replace the default accessibility / voice over double tap action on an element with a custom one?

I know that it is possible to add custom accessibility actions by adding them to the accessibilityCustomActions array of the corresponding view.

But that does not replace the standard action that is performed when you do a voice over tap (you will have to swipe first to select the custom action). I would like to replace the default tap action or intercept the tap event ... is there a way to do that?

Absolutely! Override bool accessibilityActivate() to implement a custom default action.

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