diff --git a/Examples/ObjectiveC/CustomCalloutView.m b/Examples/ObjectiveC/CustomCalloutView.m index 05c4e681..24d1aae2 100644 --- a/Examples/ObjectiveC/CustomCalloutView.m +++ b/Examples/ObjectiveC/CustomCalloutView.m @@ -130,7 +130,7 @@ - (void)setCenter:(CGPoint)center { - (BOOL)isCalloutTappable { if ([self.delegate respondsToSelector:@selector(calloutViewShouldHighlight:)]) { - return [self.delegate performSelector:@selector(calloutViewShouldHighlight:) withObject:self]; + return (BOOL)[self.delegate performSelector:@selector(calloutViewShouldHighlight:) withObject:self]; } return NO;