Given a rectangular area, I want to render some text using a specific font and have the rendered text fill out the rectangle. As in the image below:
you can also try with the UILabel's @property(nonatomic) BOOL adjustsFontSizeToFitWidth and @property minimumFontSize
@property(nonatomic) BOOL adjustsFontSizeToFitWidth
@property minimumFontSize
Initially you can set the much higher value for font property and also initialize the minimumFontSize with a minimum font value.
minimumFontSize