Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the currently focused element when using VoiceOver on iOS?

I have a table with cells that the user may swipe to mark them "completed". I am trying to make this accessible using VoiceOver by implementing the accessbilityScroll method.

This works fine, but I can't figure out what cell has focus when the user scrolls.

I only find information on how to change focus.

like image 572
bobmoff Avatar asked Dec 10 '13 15:12

bobmoff


1 Answers

Hehe, Ok. I just figured it out.

There is a protocol for this. Its called UIAccessibilityFocus

Method: accessibilityElementDidBecomeFocused:

Well, I will leave this question here to any one else that is out there struggling with this.

like image 192
bobmoff Avatar answered Sep 27 '22 18:09

bobmoff