当我的TableViewCell中的文本很长时,detailTextLabel消失。我知道UILineBreakModeTailTruncation
中不再支持iOS 6的,所以我想这:当单元格textLabel太长时,UITableViewCell detailTextLabel文本消失
cell.textLabel.lineBreakMode = NSLineBreakByTruncatingTail;
这没有奏效。有什么建议么?
编辑:
的detailTextLabel在我的故事板,这是UITableViewCellStyleValue1
设置为 “右详细信息”。
尝试在'detailTextLabel'上设置它,因为这是问题所在。 – rmaddy
是你单元格的样式'UITableViewCellStyleSubtitle'还是'... Value1'或'... Value2'?如果它是'UITableViewCellStyleDefault',它没有字幕。 – Jsdodgers
@Jsdodgers它是'... Value1'。 –