views:

70

answers:

1

I have the next problem. In one of the cells (UITableViewCell) I need to show quite a long string. I am trying to break it in lines (adding \n) between words, but it does not seem to help (to be precise -- the string has \n, but it still shows like "My long string very..." in the cell) How do I do this properly?

+1  A: 

your_cell.textLabel.lineBreakMode = UILineBreakModeWordWrap;

Jacob Relkin