diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2018-11-06 13:15:28 -0800 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2018-11-06 13:15:28 -0800 |
commit | 8b2656896e837e6ba738daab3c1ab6170b48fd78 (patch) | |
tree | 06d460d4e9b549ea794cdcfd19a5c5d79b12dd97 | |
parent | baed5ff390f8b17a2a85b3b1638f949f056efa85 (diff) | |
download | qtlocation-mapboxgl-upstream/jmkiley-threading-attribution.tar.gz |
[ios] Add commentupstream/jmkiley-threading-attribution
-rw-r--r-- | platform/darwin/src/MGLAttributionInfo.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLAttributionInfo.mm b/platform/darwin/src/MGLAttributionInfo.mm index cdea313f6e..5fa121f5f8 100644 --- a/platform/darwin/src/MGLAttributionInfo.mm +++ b/platform/darwin/src/MGLAttributionInfo.mm @@ -65,9 +65,11 @@ NSData *htmlData = [styledHTML dataUsingEncoding:NSUTF8StringEncoding]; #if TARGET_OS_IPHONE + __block NSMutableAttributedString *attributedString; dispatch_sync(dispatch_get_main_queue() , ^{ + // This initializer should be called from a global or main queue. https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata attributedString = [[NSMutableAttributedString alloc] initWithData:htmlData options:options documentAttributes:nil |