views:

126

answers:

1

When using UITableViewCell with UITableViewCellStyleValue1 style the textLabel.text is being truncated when detailTextLabel is pretty long.

static NSString *CellIdentifier = @"Cell";
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease];

cell.textLabel.text = @"Publisher";
cell.detailTextLabel.text = @"This Is A Very Long String";

So the question is how to force "Publisher" to be displayed without being truncated regarldess length of detailTextLabel?

P.S. I am new in this community so I couldn't post images which could clarify better the problem. Sorry for that...

A: 

Have you tried [cell.detailTextLabel setNumberOfLines:0]; Maybe it works.

Behlül
Unfortunately that didn't work... thanks for trying.
Joshua