I would like to resize the label font according to the number of words in the label field. How do i do that? I can use a fixed size and it doesn't look nice. It will be best if it works fine for both iOS5 and iOS6.
Need some guidance. Thanks
EDIT:
NSArray *versionCompatibility = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."];
if ( 6 == [[versionCompatibility objectAtIndex:0] intValue] ) {
// Put iOS-6 code here
titleLabel.minimumScaleFactor = 0.5;
} else {
// Put iOS-5 code here
titleLabel.minimumFontSize = 5;
}