summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-11-02 00:53:50 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-11-02 12:40:40 -0700
commit2536ccc6a786b97476b6990ad951dbee6e5ea4f2 (patch)
tree27c77927f7b18af221ddac5af6798e2924ffbf52
parente2797d1f24ac9ea5436921f97fbdac0ddc39d51b (diff)
downloadqtlocation-mapboxgl-2536ccc6a786b97476b6990ad951dbee6e5ea4f2.tar.gz
[ios] Fixed deprecation warnings
-rw-r--r--platform/ios/app/MBXOfflinePacksTableViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/app/MBXOfflinePacksTableViewController.m b/platform/ios/app/MBXOfflinePacksTableViewController.m
index 008d843b1e..7bceec7ef7 100644
--- a/platform/ios/app/MBXOfflinePacksTableViewController.m
+++ b/platform/ios/app/MBXOfflinePacksTableViewController.m
@@ -244,7 +244,7 @@ static NSString * const MBXOfflinePacksTableViewActiveCellReuseIdentifier = @"Ac
MGLOfflinePack *pack = notification.object;
NSAssert([pack isKindOfClass:[MGLOfflinePack class]], @"MGLOfflineStorage notification has a non-pack object.");
- NSError *error = notification.userInfo[MGLOfflinePackErrorUserInfoKey];
+ NSError *error = notification.userInfo[MGLOfflinePackUserInfoKeyError];
NSAssert([error isKindOfClass:[NSError class]], @"MGLOfflineStorage notification has a non-error error.");
NSString *message = [NSString stringWithFormat:@"Mapbox GL encountered an error while downloading the offline pack “%@”: %@", pack.name, error.localizedFailureReason];
@@ -261,7 +261,7 @@ static NSString * const MBXOfflinePacksTableViewActiveCellReuseIdentifier = @"Ac
MGLOfflinePack *pack = notification.object;
NSAssert([pack isKindOfClass:[MGLOfflinePack class]], @"MGLOfflineStorage notification has a non-pack object.");
- uint64_t maximumCount = [notification.userInfo[MGLOfflinePackMaximumCountUserInfoKey] unsignedLongLongValue];
+ uint64_t maximumCount = [notification.userInfo[MGLOfflinePackUserInfoKeyMaximumCount] unsignedLongLongValue];
NSLog(@"Offline pack “%@” reached limit of %llu tiles.", pack.name, maximumCount);
}