How to wrap texts in UITableViewcell on iPhone?
Asked
Active
Viewed 1,656 times
2 Answers
1
Have you looked at the lineBreakMode property on UITableViewCell?
lineBreakMode
The mode for for wrapping and truncating text in the cell. (Deprecated. Instead set the line-break mode attribute of the UILabel objects assigned to the textLabel and detailTextLabel properties.)
@property(nonatomic) UILineBreakMode lineBreakMode
Discussion
For further information, see the UILineBreakMode constants described in NSString UIKit Additions Reference. The default value is UILineBreakModeTailTruncation.

Jasarien
- 58,279
- 31
- 157
- 188
1
You would also need to set the number of lines for the text label.
Example
[cell.textLabel setNumberOfLines:2];

geekydevjoe
- 108
- 1
- 7