我正在嘗試向所有外發聊天氣泡添加已發送/未發送狀態消息。爲此,我從heightForCellBottomLabelAtIndexPath方法重新調用40。無法在JSQMessagesViewController中看到底部標籤的文本
同樣來自於JavasTextForCellBottomLabelAtIndexPath方法我返回一個屬性字符串。例如,
NSMutableAttributedString *hogan = [[NSMutableAttributedString alloc] initWithString:@"Presenting the great... Hulk Hogan!"];
[hogan addAttribute:NSFontAttributeName value:[UIFont
systemFontOfSize:20.0] range:NSMakeRange(24, 8)];[hogan addAttribute:NSForegroundColorAttributeName value:[UIColor blackColor] range:NSMakeRange(10, 10)];
我的細胞之間的這個空間現在已經後增加至40,但我看不到任何文本我回歸爲屬性字符串。此外,如果我繼續增加40的值,單元格之間的空間不斷增加,但單元格標籤文本不可見。
請告訴我我做錯了什麼。