简体   繁体   中英

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM