0
我試圖將我的標籤大小設置爲動態,但是此當前方法已棄用。我知道,正確的方法是:使用boundingRectWithSize創建動態標籤:options:attributes:context:
boundingRectWithSize:options:attributes:context:
這確實沒有與斷行模式沿修改字體大小做的伎倆。
CGSize expectedLabelSize;
expectedLabelSize = [textLabel.text sizeWithFont:[UIFont fontWithName:@"Ubuntu-Bold" size:14] constrainedToSize:maximumLabelSize
lineBreakMode:NSLineBreakByWordWrapping];
是否有應該用來改變我的標籤屬性的另一種方法是什麼?