I am instantiating a UILabel programatically. The label displays numbers in a count down. The problem is I seem unable to increase the font size dispute the fact I have the following code
[self.viewAnimation addSubview:lblCounter];
[lblCounter setAdjustsFontSizeToFitWidth:NO];
[lblCounter setMinimumFontSize:30.0];
[lblCounter setTextAlignment:UITextAlignmentCenter];
The UILabel is plenty big enough to fit size 30 font.
Anyone had similar problems?
Use
[lblCounter setFont:[UIFont systemFontOfSize:30]], minimum font size only applies when adjustsFontSizeToFitWidth is YES, and regulates how much the font will shrink before cropping takes place.