In NSString, added by UIKit, there are several methods that can give you the dimensions of a string if it is drawn. Full link here . The methods you care about are probably these:
- sizeWithFont:
- sizeWithFont: constrainedToSize:
- sizeWithFont: constrainedToSize: lineBreakMode:
- sizeWithFont: forWidth: lineBreakMode:
- sizeWithFont: minFontSize: actualFontSize: forWidth: lineBreakMode: