Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 6 MapKit VoiceOver Reads POIs Prior to Pins

I have code that worked fine under iOS 5 while tested under VoiceOver. My code adds a collection of MKPinAnnotationViews to a MKMapView. My problem in iOS 6 is that voiceover reads street names and other POIs (which can be many) prior to reaching the pins I have added. Is there a way to reorder these? I can't seem to find any recommendation from Apple on how to add pins to maps for iOS 6.

Thanks!

like image 342
abellina Avatar asked Nov 12 '22 20:11

abellina


1 Answers

The best way to handle your situation is using the rotor to order and select only the annotations you specify in your predicate.

To understand how that should be implemented, I suggest you take a look at the WWDC 2016 - What's New in Accessibility video whose content is perfectly summarized here and that fully explains how this feature works thanks to a detailed example.

like image 139
XLE_22 Avatar answered Nov 15 '22 11:11

XLE_22