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
Create annotations to add indicators and additional details for specific locations on a map.
Using your finger and the pen or highlighter tool, you can edit and add other marks to your document. Smart Annotation marks are connected to and move with the text, object, or table cells where you add them.
Derived from the MKAnnotationView class, an annotation view draws the visual representation of the annotation on the map surface. Register annotation views with the MKMapView so the map view can create and efficiently reuse them.
In your -mapView:viewForAnnotation:
set the accessibilityValue
of your returned MKAnnotationView
object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With