Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone MapKit: Accessibility of Annotations

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

like image 956
Chris Avatar asked Jan 17 '11 10:01

Chris


People also ask

What is annotation in MapKit?

Create annotations to add indicators and additional details for specific locations on a map.

What are iOS annotations?

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.

What is mapview annotation?

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.


1 Answers

In your -mapView:viewForAnnotation: set the accessibilityValue of your returned MKAnnotationView object.

like image 61
Ortwin Gentz Avatar answered Nov 08 '22 20:11

Ortwin Gentz