From 0993e53b2b6ee2736a9c120065a692483c8bb3b3 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Wed, 30 Dec 2015 11:14:57 +0800 Subject: [PATCH] textColor for message.deletedByCreator --- Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift b/Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift index 6bb38703..0aad2db4 100644 --- a/Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift +++ b/Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift @@ -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