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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -