#import <UIKit/UIKit.h> @interface AutoSizingLabel : UILabel {} - (id) initWithText:(NSString *)text andFont:(UIFont *)font; @end @implementation AutoSizingLabel - (id) initWithText:(NSString *)text andFont:(UIFont *)font { CGSize size = [text sizeWithFont:font constrainedToSize:CGSizeMake([[UIScreen mainScreen] bounds].size.width, 10000) lineBreakMode:UILineBreakModeTailTruncation]; self = [super