This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
[ios] Attribution button in MGLMapView doesn't present alert controller from modal view controller #8782
Labels
Milestone
Platform:
iOS
Mapbox SDK version:
3.5.2 via cocoapods
Steps to trigger behavior
Expected behavior
Attribution UIAlertController displayed
Actual behavior
No change in UI (other than button highlight state). Error shown in console:
Demo Project
https://github.com/cmoulton/MapboxModalAttributionTest
Need to set mapbox access token in info.plist to use.
(Map views in green)
I think the change required is to change this code in MGLMapView.mm (line 1947):
To fetch the current top view controller (based on http://stackoverflow.com/a/21848247/90743):
The text was updated successfully, but these errors were encountered: