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

Commit

Permalink
[ios] Fix iOS 8 incompatibility in iosapp hud label font
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbunny committed Oct 20, 2017
1 parent 2857090 commit 00e44e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/ios/app/MBXViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ - (void)viewDidLoad
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)
{
Expand Down

0 comments on commit 00e44e9

Please sign in to comment.