问题
[_mapView selectAnnotation:sannotation animated:YES];
It appears not always, so I don't understand what's the reason for it.
How to fix it?
回答1:
Before selecting any annotation deselect all annotations on mapView.
for (id<MKAnnotation> annotation in mapView.annotations)
[mymap deselectAnnotation:annotation animated:NO];
I had same issue when along with default callout, I had implemented custom callouts. Though it is not a perfect solution it served the purpose.
来源:https://stackoverflow.com/questions/9180317/sometimes-strange-artifact-appears-when-mapview-selectannotation