当使用 UITableViewCell 和 UITableViewCellStyleValue1 样式时,当 detailTextLabel 很长时 textLabel.text 被截断。
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";
所以问题是如何强制显示“Publisher”而不被截断,而不考虑detailTextLabel的长度?
PS我是这个社区的新手,所以我无法发布可以更好地澄清问题的图片。对不起……