Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index out of bounds in REMarkerClusterer Xcode7 #35

Open
sunlyear opened this issue Sep 11, 2015 · 2 comments
Open

index out of bounds in REMarkerClusterer Xcode7 #35

sunlyear opened this issue Sep 11, 2015 · 2 comments

Comments

@sunlyear
Copy link

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.

@sebasdeweert
Copy link

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];
}

@kennethmatata88
Copy link

That works well.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants