开发者

iPhone MapKit: Accessibility of Annotations

开发者 https://www.devze.com 2023-02-04 21:16 出处:网络
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 read

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消