
IM即时通讯
安全可靠、全球互通

实时音视频
流畅稳定、省钱省力
回答:
示例代码:
- (void)willDisplayMessageCell:(RCMessageBaseCell *)cell atIndexPath:(NSIndexPath *)indexPath { if([cell isKindOfClass:[RCTextMessageCell class]]){ RCTextMessageCell *txtCell = (RCTextMessageCell *)cell; txtCell.textLabel.attributeDictionary = @{ @(NSTextCheckingTypeLink) : @{NSForegroundColorAttributeName : [UIColor redColor]}, @(NSTextCheckingTypePhoneNumber) : @{NSForegroundColorAttributeName : [UIColor redColor]} }; txtCell.textLabel.highlightedAttributeDictionary = @{ @(NSTextCheckingTypeLink) : @{NSForegroundColorAttributeName : [UIColor redColor]}, @(NSTextCheckingTypePhoneNumber) : @{NSForegroundColorAttributeName : [UIColor redColor] }; } }