Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Check for valid superview to avoid crash on iOS 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Rex committed Apr 26, 2019
1 parent 8f5e1ba commit 8fb4c2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,10 @@ - (void)didMoveToWindow
- (void)didMoveToSuperview
{
[self validateDisplayLink];
[self installConstraints];
if (self.superview)
{
[self installConstraints];
}
[super didMoveToSuperview];
}

Expand Down

0 comments on commit 8fb4c2b

Please sign in to comment.