UITableViewCell textLabel is disabled

I see strange behavior in one of my UITableViewCells. When setting the font textLabelto italic font ( [UIFont fontWithName:@"Helvetica-BoldOblique" size:17]), a few pixels are cropped at the end. It doesnโ€™t look very bad, but I would like to avoid it. Any suggestions?

Image http://i56.tinypic.com/2ylplau.png

I use by default UITableViewCell, since I only need one UILabel, so there is no need for a subclass. I tried to call [cell.textLabel sizeToFit]after installing the font, but it did not work.

+5
source share
2 answers

, UILabel . , default UITableViewCell, . ( textLabel - . -tableView:willDisplayCell:forRowAtIndexPath:, CGRectZero.)

, , , , :

cell.textLabel.text = [NSString stringWithFormat:@"%@ ", cell.textLabel.text];
+4

, ; , UILabel . , , .

UILabel , ( ), UILabel , .

, UILabel , " " .

+3

All Articles