2010-11-19 47 views

Répondre

16

Essayez quelque chose comme ceci dans votre méthode 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

exactement ce que je cherche! Merci – Yongzhi

0

Je ne sais pas si cela répond à votre question, mais à l'intérieur de votre délégué cellForRowAtIndexPath vous pouvez définir cell.textLabelfont à un UIFont .

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