Disable callout view dimming when tap is a no-op

Fixes #2634.
This commit is contained in:
Minh Nguyễn
2015-11-04 13:36:33 -08:00
parent 4956c05042
commit d00f8e37c7

View File

@@ -1453,6 +1453,11 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
}
}
- (BOOL)calloutViewShouldHighlight:(__unused SMCalloutView *)calloutView
{
return [self.delegate respondsToSelector:@selector(mapView:tapOnCalloutForAnnotation:)];
}
- (void)calloutViewClicked:(__unused SMCalloutView *)calloutView
{
if ([self.delegate respondsToSelector:@selector(mapView:tapOnCalloutForAnnotation:)])