iPhone MapKit: Accessibility of Annotations
-
11-10-2019 - |
Question
does anybody know how it is possible to add an accessibility label to a map annotation? I've tried adding it to the MKAnnotationView and the MKAnnotation but neither works. VoiceOver always only reads "pin" when an annotation is selected, while the original Maps application features the correct title when selecting an annotation.
Thanks and best regards,
Chris
Solution
In your -mapView:viewForAnnotation:
set the accessibilityValue
of your returned MKAnnotationView
object.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow