开发者

iPhone: Preventing text truncation with UITableView of style UITableViewCellStyleValue1

开发者 https://www.devze.com 2023-01-04 15:08 出处:网络
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 re开发者_StackOverfl

iPhone: Preventing text truncation with UITableView of style UITableViewCellStyleValue1

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 re开发者_StackOverflow中文版mains in full?

Thanks friends.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消