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
Post a Comment