 <pre><code>const int kPadding = 4; // Padding for the diference between the font's height and the line height - it's 2 for front and 2 for bottom float maxHeight = (FONT_SIZE+kPadding)*kNumberOfLinesYouNeed; CGSize labelSize = [yourString sizeWithFont:yourFont constrainedToSize:CGSizeMake(kYourNeededWidth, maxHeight) lineBreakMode:UILineBreakModeWordWrap]; youLabel.frame=CGRectMake(yourX, yourY, kYourNeededWidth, maxHeight); </code></pre> <p>I'm sorry for any mistakes. I have written this form my head.</p>