diff options
author | Jason Wray <jason@mapbox.com> | 2017-10-19 11:46:32 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2017-10-20 17:05:41 -0400 |
commit | 00e44e9cb09fbe1b8444a9f54592dee82b4b8469 (patch) | |
tree | af0324f5406067988a11bb3b0b154e705b0a7520 /platform | |
parent | 2857090cf6c002e876be2b8c2826db99e7c40183 (diff) | |
download | qtlocation-mapboxgl-00e44e9cb09fbe1b8444a9f54592dee82b4b8469.tar.gz |
[ios] Fix iOS 8 incompatibility in iosapp hud label font
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/app/MBXViewController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index 5bccb64608..2c3d26b489 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -165,7 +165,9 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) { self.mapView.scaleBar.hidden = NO; self.mapView.showsUserHeadingIndicator = YES; self.hudLabel.hidden = YES; - self.hudLabel.titleLabel.font = [UIFont monospacedDigitSystemFontOfSize:10 weight:UIFontWeightRegular]; + if ([UIFont respondsToSelector:@selector(monospacedDigitSystemFontOfSize:weight:)]) { + self.hudLabel.titleLabel.font = [UIFont monospacedDigitSystemFontOfSize:10 weight:UIFontWeightRegular]; + } if ([MGLAccountManager accessToken].length) { |