diff options
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 89fc1e8fab..085faa006b 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -1255,7 +1255,7 @@ public: { [super didMoveToWindow]; - if (self.window) + if (self.superview) { // See above comment CAEAGLLayer *eaglLayer = MGL_OBJC_DYNAMIC_CAST(_glView.layer, CAEAGLLayer); @@ -1272,6 +1272,10 @@ public: [super didMoveToSuperview]; } +- (void) willMoveToSuperview:(UIView *)newSuperview { + // ? +} + - (void)refreshSupportedInterfaceOrientationsWithWindow:(UIWindow *)window { // "The system intersects the view controller's supported orientations with |