Open sunlyear opened 9 years ago
Solved.. Replace the line with this:
if ([self.mapView.selectedAnnotations count] == 0) {
[self.mapView deselectAnnotation:nil animated:NO];
} else {
[self.mapView deselectAnnotation:[self.mapView.selectedAnnotations objectAtIndex:0] animated:NO];
}
That works well. Thanks.
I have got an error of index out of bounds when build with Xcode7. The crash is inside REMarkerClusterer class in method "mapView:mapView regionDidChangeAnimated:animated". Please help fixing this.