Child GLKView should be bottommost child

Otherwise, any subviews added to an MGLMapView in a XIB or storyboard are completely obscured by the GLKView.
This commit is contained in:
Minh Nguyễn
2015-03-27 16:34:11 -07:00
parent 5c6809fc36
commit 653724e68d

View File

@@ -212,7 +212,7 @@ mbgl::DefaultFileSource *mbglFileSource = nullptr;
}
_glView.delegate = self;
[_glView bindDrawable];
[self addSubview:_glView];
[self insertSubview:_glView atIndex:0];
_glView.contentMode = UIViewContentModeCenter;
[self setBackgroundColor:[UIColor clearColor]];