summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2017-10-19 11:46:32 -0400
committerJason Wray <jason@mapbox.com>2017-10-19 11:51:06 -0400
commit8217e3174376725aa4b227646ef2c400ba33b04d (patch)
tree259c5ce67223051f5ebd8ea94ae47b9a588e7be4
parentfc7b3d293215c623554650e42dbe76513daac534 (diff)
downloadqtlocation-mapboxgl-upstream/fb-scalebar-ios8-fix.tar.gz
[ios] Fix iOS 8 incompatibility in iosapp hud label fontupstream/fb-scalebar-ios8-fix
-rw-r--r--platform/ios/app/MBXViewController.m4
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)
{