Reputation: 5051
How to wrap texts in UITableViewcell on iPhone?
Upvotes: 0
Views: 1662
Reputation: 108
You would also need to set the number of lines for the text label.
Example
[cell.textLabel setNumberOfLines:2];
Upvotes: 1
Reputation: 58448
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.
Upvotes: 1