If UILabel contains too much text, how can I customize the shortcut so that it reduces the font size?
This is how I configure my UILabel:
descriptionLabel = [[UILabel alloc] initWithFrame:CGRectMake(200, 30, 130, 150)]; [descriptionLabel setFont:[Utils getSystemFontWithSize:14]]; [descriptionLabel setBackgroundColor:[UIColor clearColor]]; [descriptionLabel setTextColor:[UIColor whiteColor]]; descriptionLabel.numberOfLines = 1; [self addSubview:descriptionLabel];
objective-c iphone cocoa-touch interface-builder
Sheehan Alam Apr 21 '10 at 18:55 2010-04-21 18:55
source share