在Xcode中动态创建的UILabel文本是否有相应的Adjust to Fit? 即:
UILabel *someLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 20, 35, 18)];
someLabel.font = [UIFont boldSystemFontOfSize:14];
someLabel.FOO_SIZETOFIT = YES; //FOO CODE
[someLabel release];
答案 0 :(得分:2)
添加此行
someLabel.adjustsFontSizeToFitWidth = YES;