How to enumerate UITextView accessibility child elements?

586 Views Asked by At

I have a UITextView that displays attributed string with links in it. When I run Accessibility Inspector, it can correct detect the UITextView as static text, and list the links as children with correct UIAccessibilityTraitLink. Now I need to get those elements from my own code. But UITextView doesn't return any of the inner accessibility elements. What interface does Accessibility Inspector go through to find the child elements? The attached screenshot is what Accessibility Inspector sees:

enter image description here

0

There are 0 best solutions below