textColor for message.deletedByCreator

This commit is contained in:
nixzhu
2015-12-30 11:14:57 +08:00
parent 627c1f4ad3
commit 0993e53b2b
@@ -65,6 +65,13 @@ class ChatLeftTextCell: ChatBaseCell {
self.user = message.fromFriend
textContentTextView.text = message.textContent
if message.deletedByCreator {
textContentTextView.textColor = UIColor.lightGrayColor()
} else {
textContentTextView.textColor = UIColor.blackColor()
}
//textContentTextView.attributedText = NSAttributedString(string: message.textContent, attributes: textAttributes)
//textContentTextView.textAlignment = textContentLabelWidth < YepConfig.minMessageTextLabelWidth ? .Center : .Left