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

[ios] Telemetry button in modal view controllers #9027

Merged
merged 2 commits into from
May 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1999,9 +1999,10 @@ - (void)presentTelemetryAlertController
}];
[alertController addAction:participateAction];

[self.window.rootViewController presentViewController:alertController
animated:YES
completion:NULL];
UIViewController *viewController = [self.window.rootViewController mgl_topMostViewController];
[viewController presentViewController:alertController
animated:YES
completion:NULL];
}

#pragma mark - Properties -
Expand Down