diff --git a/HCLineChartView Sample/HCLineChartView Sample.xcodeproj/project.xcworkspace/xcuserdata/hypercube2.xcuserdatad/UserInterfaceState.xcuserstate b/HCLineChartView Sample/HCLineChartView Sample.xcodeproj/project.xcworkspace/xcuserdata/hypercube2.xcuserdatad/UserInterfaceState.xcuserstate index 3cb1df7..b306774 100644 Binary files a/HCLineChartView Sample/HCLineChartView Sample.xcodeproj/project.xcworkspace/xcuserdata/hypercube2.xcuserdatad/UserInterfaceState.xcuserstate and b/HCLineChartView Sample/HCLineChartView Sample.xcodeproj/project.xcworkspace/xcuserdata/hypercube2.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Source/HCLineChartView/HCChartDrawer/HCChartDrawer+Extensions/HCChartDrawer+TitleAndSubtitle/HCChartDrawer+TitleAndSubtitle.m b/Source/HCLineChartView/HCChartDrawer/HCChartDrawer+Extensions/HCChartDrawer+TitleAndSubtitle/HCChartDrawer+TitleAndSubtitle.m index 2e7a02a..0782643 100644 --- a/Source/HCLineChartView/HCChartDrawer/HCChartDrawer+Extensions/HCChartDrawer+TitleAndSubtitle/HCChartDrawer+TitleAndSubtitle.m +++ b/Source/HCLineChartView/HCChartDrawer/HCChartDrawer+Extensions/HCChartDrawer+TitleAndSubtitle/HCChartDrawer+TitleAndSubtitle.m @@ -27,7 +27,7 @@ -(void)drawTitleAndSubtitle -(void)drawTitleText { UIFont* titleFont; - if (floor(NSFoundationVersionNumber) >= NSFoundationVersionNumber_iOS_8_2) + if (@available(iOS 8.2, *)) { titleFont = [UIFont systemFontOfSize:hcLineChartView.fontSizeForTitle weight:2.0]; } @@ -57,7 +57,7 @@ -(CGRect)chartTitleRect -(void)drawSubTitleText { UIFont* subtitleFont; - if (floor(NSFoundationVersionNumber) >= NSFoundationVersionNumber_iOS_8_2) + if (@available(iOS 8.2, *)) { subtitleFont = [UIFont systemFontOfSize:hcLineChartView.fontSizeForSubTitle weight:1.0]; }