我創建了一個uitableview,並在每個單元格中都有一個textLabel。更改textlabel單元格不同行中的文本大小uitableview
cell.textLabel.numberOfLines = 0;
cell.textLabel.text = [NSString stringWithFormat:@"Hello\n how are you?"];
UIFont *myFont = [ UIFont fontWithName: @"Novel" size: 6.0 ];
cell.textLabel.font = myFont;
我可以的「你好」的字體設置爲10的字體「你怎麼樣?」到6?
謝謝!
可能的重複 - http://stackoverflow.com/questions/1417346/iphone-uilabel-containing-text-with-multiple-fonts-at-the-same-time – rishi 2012-04-27 12:18:02