ios - How to disable Accessibility for MKAnnotationView and Street in MKMapView -


i want disable pins on map view. setting isaccessibilityelement = no not working on mkannotationview somehow.

in addition, found voiceover iterate street street in map view may not make sense in scenarios.

so there other way disable accessibility on mkannotationview , street in map?

current code

- (mkannotationview *)mapview:(mkmapview *)mapview viewforannotation:(id<mkannotation>)annotation {  if ([annotation iskindofclass:[mkuserlocation class]]) return nil; ...//some setup mkannotationview *annotationview = [mapview dequeuereusableannotationviewwithidentifier:annotationidentifier]; if (!annotationview && ![annotationidentifier isequaltostring:@""]) {     annotationview = [[mkannotationview alloc] initwithannotation:annotation reuseidentifier:annotationidentifier]; } .../some config  // somehow no effect :( annotationview.isaccessibilityelement = no;  return annotationview; 

}


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -