2010-11-19 60 views

回答

16

尝试这样的事情在你的cellForRowAtIndexPath方法:

//Configure the cell... 
cell.textLabel.font = [UIFont systemFontOfSize:14]; //Change this value to adjust size 
cell.textLabel.numberOfLines = 2; //Change this value to show more or less lines. 
cell.textLabel.text = @"This is my text"; 
+1

正是我在找什么!谢谢 – Yongzhi 2010-11-19 06:06:17

0

我不知道这是否回答你的问题,而是你的cellForRowAtIndexPath委托在里面可以设置cell.textLabelfont到UIFont

1
//font size 
cell.textLabel.font = [UIFont systemFontOfSize:14];