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 set the UILabel transform property and scale the width:
[myLabel sizeToFit]; myLabel.transform = CGAffineTransformMakeScale(0.5, 1.0);