How to avoid truncation of text with UITableViewCellStyleValue2
Posted
by
Regan
on Stack Overflow
See other posts from Stack Overflow
or by Regan
Published on 2011-01-09T04:06:28Z
Indexed on
2011/01/09
11:53 UTC
Read the original article
Hit count: 201
I use this code to make my UITableViewCell
s
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:CellIdentifier] autorelease];
If you're unfamiliar with UITableViewCellStyleValue2, the main text is shown, and then the detail text is shown after it, generally in a different color. However, when I do this, my main text is truncated, if it is longer than a short word. I want to force it to not truncate the main text and show the entire main text, and then the detail text after it. How can I do that?
© Stack Overflow or respective owner