Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Fix string-bool casting warning in MBXOfflinePacksTableViewCont…
Browse files Browse the repository at this point in the history
…roller
  • Loading branch information
friedbunny committed Feb 14, 2019
1 parent 00144a0 commit 1c99b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/ios/app/MBXOfflinePacksTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ - (IBAction)addCurrentRegion:(id)sender {
name = nameField.placeholder;
}

NSString *fontFamilyName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLIdeographicFontFamilyName"];
MGLTilePyramidOfflineRegion *region = [[MGLTilePyramidOfflineRegion alloc] initWithStyleURL:mapView.styleURL bounds:mapView.visibleCoordinateBounds fromZoomLevel:mapView.zoomLevel toZoomLevel:mapView.maximumZoomLevel];
region.includesIdeographicGlyphs = fontFamilyName;
BOOL hasIdeographicFontFamilyName = !![[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLIdeographicFontFamilyName"];
region.includesIdeographicGlyphs = hasIdeographicFontFamilyName;
NSData *context = [NSKeyedArchiver archivedDataWithRootObject:@{
MBXOfflinePackContextNameKey: name,
}];
Expand Down

0 comments on commit 1c99b19

Please sign in to comment.