【发布时间】:2011-02-10 18:14:16
【问题描述】:
如果 UILabel 包含太多文本,我该如何设置标签以缩小字体大小?
这是我设置 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];
【问题讨论】:
标签: iphone objective-c cocoa-touch interface-builder