JSQMessageViewController display CellTopLabel

I'm using the JSQMessageViewController component of Xamarin to display message Bubbles.

But the CellTopLabel is not shown withing the MessageBubble. I have no idea what i'm doing wrong anyone had the same problem ?
The same problem occures when adding the NSDate to a Message. It won't appear.

Below is the code for GetCell, that's where i currently fill the CellTopLabel.Text property.

public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
    var cell = base.GetCell(collectionView, indexPath) as MessagesCollectionViewCell;

    Comment comment = ViewModel.Comments[indexPath.Row] as Comment;

    if (comment != null)
        // Override GetCell to make modifications to the cell
        // In this case darken the text for the sender
        if (comment.IsMine)
            cell.TextView.TextColor = UIColor.Black;

        cell.CellTopLabel.Text = comment.Username;
        cell.MessageBubbleTopLabel.Text = comment.Username;

    return cell;

What i'm trying to achieve is displayed in the outer left iPhone:

Best Answer


  • MarkVerkielOldMarkVerkielOld USMember ✭✭

    Thanks alot this worked out for me.

Sign In or Register to comment.