Search code examples
iphoneipaduitableview

iPhone: Preventing text truncation with UITableView of style UITableViewCellStyleValue1


Problem

As you can see, both the text (left) and the detail text (right) have been truncated. How can I ensure only the detail text on the right is truncated, while the text on the left remains in full?

Thanks friends.


Solution

  • I don't know of a way to do it simply other then 1) subclassing UITableViewCell and handle layout yourself, or 2) only display x number of characters in your detail text label.

    2) is what I'd do.