Merge pull request #1357 from mapbox/1ec5-view-controller

Automatically find view controller for layout guides
This commit is contained in:
Minh Nguyễn
2015-04-27 22:28:06 -07:00
4 changed files with 23 additions and 26 deletions

View File

@@ -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];