From 8beb49e5f85f3ef02ba245b0273ffe942cba165b Mon Sep 17 00:00:00 2001 From: Nadia Barbosa Date: Mon, 1 Apr 2019 17:20:12 -0700 Subject: debug things --- platform/ios/src/MGLMapView.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 89fc1e8fa..085faa006 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 -- cgit v1.2.3