當我的TableViewCell中的文本很長時,detailTextLabel消失。我知道UILineBreakModeTailTruncation
中不再支持iOS 6的,所以我想這:當單元格textLabel太長時,UITableViewCell detailTextLabel文本消失
cell.textLabel.lineBreakMode = NSLineBreakByTruncatingTail;
這沒有奏效。有什麼建議麼?
編輯:
的detailTextLabel在我的故事板,這是UITableViewCellStyleValue1
設置爲 「右詳細信息」。
嘗試在'detailTextLabel'上設置它,因爲這是問題所在。 – rmaddy
是你單元格的樣式'UITableViewCellStyleSubtitle'還是'... Value1'或'... Value2'?如果它是'UITableViewCellStyleDefault',它沒有字幕。 – Jsdodgers
@Jsdodgers它是'... Value1'。 –