diff options
author | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-02-13 11:40:40 -0500 |
---|---|---|
committer | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-02-13 11:40:40 -0500 |
commit | b68266953fab505ad257c7ab471a75eb9bd634bc (patch) | |
tree | 0fb029e6b2a967a678a69993bd0e018291143f92 /platform/ios/app/MBXSnapshotsViewController.m | |
parent | 44ca0a5ec4979138514e8dda10dd1b1173dd0db1 (diff) | |
parent | 3a0c87b1b4d4f2789a2ca5e995a79a7bad4f761f (diff) | |
download | qtlocation-mapboxgl-b68266953fab505ad257c7ab471a75eb9bd634bc.tar.gz |
Merge tag 'ios-v3.7.4' into master
# Conflicts:
# include/mbgl/style/conversion/tileset.hpp
# include/mbgl/util/tileset.hpp
# platform/android/CHANGELOG.md
# platform/android/MapboxGLAndroidSDK/gradle.properties
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
# platform/ios/CHANGELOG.md
# platform/ios/ios.xcodeproj/project.pbxproj
# platform/macos/CHANGELOG.md
# src/mbgl/layout/symbol_projection.cpp
# src/mbgl/renderer/tile_pyramid.cpp
# src/mbgl/style/conversion/tileset.cpp
Diffstat (limited to 'platform/ios/app/MBXSnapshotsViewController.m')
-rw-r--r-- | platform/ios/app/MBXSnapshotsViewController.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/ios/app/MBXSnapshotsViewController.m b/platform/ios/app/MBXSnapshotsViewController.m index 3bf93d8721..95d3251e2e 100644 --- a/platform/ios/app/MBXSnapshotsViewController.m +++ b/platform/ios/app/MBXSnapshotsViewController.m @@ -50,12 +50,13 @@ options.zoomLevel = 10; // Create and start the snapshotter + __weak UIImageView *weakImageView = imageView; MGLMapSnapshotter* snapshotter = [[MGLMapSnapshotter alloc] initWithOptions:options]; [snapshotter startWithCompletionHandler: ^(MGLMapSnapshot* snapshot, NSError *error) { if (error) { NSLog(@"Could not load snapshot: %@", [error localizedDescription]); } else { - imageView.image = snapshot.image; + weakImageView.image = snapshot.image; } }]; |