是否可以同时使用 minimumScaleFactor 和属性文本字符串?
[myLabel setFrame:CGRectMake(6, 0, 200, 25)];
NSMutableAttributedString *attStr = [[NSMutableAttributedString alloc] initWithString:@"A very long string and its first 20 characters should be bold"];
[attStr addAttribute:NSFontAttributeName value:[UIFont boldSystemFontOfSize:17] range:NSMakeRange(0, 20)];
myLabel.attributedText = attStr;
[myLabel setAdjustsFontSizeToFitWidth:YES];
[myLabel setAdjustsLetterSpacingToFitWidth:YES];
[myLabel setMinimumScaleFactor:0.3];
这似乎不起作用。如果我设置 myLabel.text 它按预期缩放。如何让缩放正常工作?