Messagekit: Remove Avatar view for outcoming message and remove date

Created on 6 May 2018  路  6Comments  路  Source: MessageKit/MessageKit

Hi! I want to remove avatar view for outcoming message and i want to personalize each date under cells or remove it because its too much.
How can i do this ?

question stale

Most helpful comment

@JulienLevallois About the AvatarView please check out https://github.com/MessageKit/MessageKit/blob/master/Documentation/FAQs.md

For modifying one of the cell's labels you can set a different text in one of the MessagesDataSource methods:


func cellTopLabelAttributedText(for message: MessageType, at indexPath: IndexPath) -> NSAttributedString?

func messageTopLabelAttributedText(for message: MessageType, at indexPath: IndexPath) -> NSAttributedString?

func messageBottomLabelAttributedText(for message: MessageType, at indexPath: IndexPath) -> NSAttributedString?

All 6 comments

@JulienLevallois About the AvatarView please check out https://github.com/MessageKit/MessageKit/blob/master/Documentation/FAQs.md

For modifying one of the cell's labels you can set a different text in one of the MessagesDataSource methods:


func cellTopLabelAttributedText(for message: MessageType, at indexPath: IndexPath) -> NSAttributedString?

func messageTopLabelAttributedText(for message: MessageType, at indexPath: IndexPath) -> NSAttributedString?

func messageBottomLabelAttributedText(for message: MessageType, at indexPath: IndexPath) -> NSAttributedString?

image

And also i wanted to know, whats the frequence of the date in the middle of the screen ? Each new hour ?

@JulienLevallois You must use the last release "1.0.0-beta.1"

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This issue has been auto-closed because there hasn't been any activity for at least 21 days. However, we really appreciate your contribution, so thank you for that! 馃檹 Also, feel free to open a new issue if you still experience this problem 馃憤.

Was this page helpful?
0 / 5 - 0 ratings