summaryrefslogtreecommitdiff
path: root/ios/app
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-04-27 15:52:30 -0700
committerMinh Nguyễn <mxn@1ec5.org>2015-04-27 15:52:30 -0700
commit5ffa52cab5556639a327471e1927787af6a18231 (patch)
tree76cdadbc32cc24f44b0c76f7820d2b043ab3c9e1 /ios/app
parent30efdea552e62651102386d354e5841e97cacdf9 (diff)
downloadqtlocation-mapboxgl-5ffa52cab5556639a327471e1927787af6a18231.tar.gz
Automatically find view controller for layout guides
Find the managing view controller by traversing the responder chain.
Diffstat (limited to 'ios/app')
-rw-r--r--ios/app/MBXViewController.mm1
1 files changed, 0 insertions, 1 deletions
diff --git a/ios/app/MBXViewController.mm b/ios/app/MBXViewController.mm
index 13235beb07..98c8e016db 100644
--- a/ios/app/MBXViewController.mm
+++ b/ios/app/MBXViewController.mm
@@ -67,7 +67,6 @@ mbgl::Settings_NSUserDefaults *settings = nullptr;
self.mapView = [[MGLMapView alloc] initWithFrame:self.view.bounds accessToken:accessToken];
self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- self.mapView.viewControllerForLayoutGuides = self;
self.mapView.showsUserLocation = YES;
self.mapView.delegate = self;
[self.view addSubview:self.mapView];