summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTore Halset <halset@pvv.ntnu.no>2016-05-26 16:43:53 +0200
committerMinh Nguyễn <mxn@1ec5.org>2016-05-26 07:43:53 -0700
commitf3ec50da1223efcac2fead0fcb773ec8abe134d0 (patch)
tree934332142d14503a00f56cecc8102e094496fe89
parentaf6ae05ca36ec8ac5ff3e7a29669d6705437f943 (diff)
downloadqtlocation-mapboxgl-f3ec50da1223efcac2fead0fcb773ec8abe134d0.tar.gz
overide canBecomeFirstResponder to return YES to be able to use UIMenuController on the map (#5156)
-rw-r--r--platform/ios/src/MGLMapView.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index a928941b69..3811c3b7b8 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