Antoine Gamond

Enable adjustsFontSizeToFitWith for PNChartLabel

@@ -18,10 +18,12 @@ @@ -18,10 +18,12 @@
18 if (self) { 18 if (self) {
19 // Initialization code 19 // Initialization code
20 20
21 - [self setFont:[UIFont boldSystemFontOfSize:11.0f]]; 21 + self.font = [UIFont boldSystemFontOfSize:11.0f];
22 - self.backgroundColor = [UIColor clearColor]; 22 + self.backgroundColor = [UIColor clearColor];
23 - [self setTextAlignment:NSTextAlignmentCenter]; 23 + self.textAlignment = NSTextAlignmentCenter;
24 - self.userInteractionEnabled = YES; 24 + self.userInteractionEnabled = YES;
  25 + self.minimumScaleFactor = 0.8;
  26 + self.adjustsFontSizeToFitWidth = YES;
25 } 27 }
26 28
27 return self; 29 return self;