From f3ec50da1223efcac2fead0fcb773ec8abe134d0 Mon Sep 17 00:00:00 2001 From: Tore Halset Date: Thu, 26 May 2016 16:43:53 +0200 Subject: [PATCH] overide canBecomeFirstResponder to return YES to be able to use UIMenuController on the map (#5156) --- platform/ios/src/MGLMapView.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index a928941b6..3811c3b7b 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -1121,6 +1121,10 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration) for (UIView *subview in view.subviews) [self updateTintColorForView:subview]; } +- (BOOL)canBecomeFirstResponder { + return YES; +} + #pragma mark - Gestures - - (void)handleCompassTapGesture:(__unused id)sender