Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 544
cr4sh_override Avatar asked Oct 07 '16 08:10

cr4sh_override


1 Answers

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

like image 187
Justin Avatar answered Oct 28 '22 01:10

Justin