summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Kiley <jmkiley@users.noreply.github.com>2017-05-17 15:46:27 -0700
committerGitHub <noreply@github.com>2017-05-17 15:46:27 -0700
commit4f90d7a56608d6962cfb86505dfeba92b8cd3154 (patch)
treeaf8cbaca10f411859ea78ec1f461c1f1a06b4d0a
parent30b919196b72351c43a5834b66a36068c0588fe0 (diff)
downloadqtlocation-mapboxgl-4f90d7a56608d6962cfb86505dfeba92b8cd3154.tar.gz
[ios] Telemetry button in modal view controllers (#9027)
Fixes #8980.
-rw-r--r--platform/ios/src/MGLMapView.mm7
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index a4c9f5194c..4054099dbd 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -1999,9 +1999,10 @@ public:
}];
[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 -