2009-03-04 21 views

回答

2

我找到一些屬性來定製的UILabel:

label.numberOfLines = 3; 
label.adjustsFontSizetoFitWidth = YES; 
label.minimumFontSize = 8.0f; 

而'\ n'可以用作尾部截斷標記。

+0

adjustsFontSizeToWidth僅適用於numberOfLines = 1 – Thomas 2009-09-03 15:00:50

相關問題