更改聊天消息字体颜色、图片样式。

在聊天界面重写方法,得到消息类型,找到相应属性更改

- (void)willDisplayConversationTableCell:(RCMessageBaseCell *)cell atIndexPath:(NSIndexPath *)indexPath{
    //改变头像样式
    RCMessageCell *RCCell = (RCMessageCell *)cell;
    RCCell.portraitStyle = RC_USER_AVATAR_CYCLE;
    //改变字体颜色
    RCTextMessageCell *textCell = (RCTextMessageCell *)cell;
    textCell.textLabel.textColor = [UIColor redColor];

    if ([cell isMemberOfClass:RCImageMessageCell.class]) {
        RCImageMessageCell *Image = (RCImageMessageCell *)cell;
        Image.pictureView.layer.borderWidth = 2;
        Image.pictureView.layer.borderColor = [UIColor redColor].CGColor;
    }
}

注意不要更改字体大小,可能引起布局问题