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?
UITableViewCell
textLabel
[UIFont fontWithName:@"Helvetica-BoldOblique" size:17]
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.
UILabel
[cell.textLabel sizeToFit]
, UILabel . , default UITableViewCell, . ( textLabel - . -tableView:willDisplayCell:forRowAtIndexPath:, CGRectZero.)
-tableView:willDisplayCell:forRowAtIndexPath:
CGRectZero
, , , , :
cell.textLabel.text = [NSString stringWithFormat:@"%@ ", cell.textLabel.text];
, ; , UILabel . , , .
UILabel , ( ), UILabel , .
, UILabel , " " .