From a4011a80f4bf9cbf595fe74c90b17cead0bd2ca2 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Wed, 2 Dec 2015 17:12:48 +0800 Subject: [PATCH] clean code --- Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift | 3 +-- Yep/Views/Cells/ChatRightText/ChatRightTextCell.swift | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift b/Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift index 6b894cad..6a2856be 100644 --- a/Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift +++ b/Yep/Views/Cells/ChatLeftText/ChatLeftTextCell.swift @@ -89,9 +89,8 @@ class ChatLeftTextCell: ChatBaseCell { // lineHeight 19.088, size.height 35.5 (1 line) 54.5 (2 lines) textContentTextView.textAlignment = ((size.height - textContentTextView.font!.lineHeight) < 20) ? .Center : .Left - //println("ceil(size.width): \(ceil(size.width)), textContentLabelWidth: \(textContentLabelWidth)") if ceil(size.width) != textContentLabelWidth { - println("ceil(size.width): \(ceil(size.width)), textContentLabelWidth: \(textContentLabelWidth)") + println("left ceil(size.width): \(ceil(size.width)), textContentLabelWidth: \(textContentLabelWidth)") println(">>>\(message.textContent)<<<") //textContentLabelWidth += YepConfig.ChatCell.magicWidth diff --git a/Yep/Views/Cells/ChatRightText/ChatRightTextCell.swift b/Yep/Views/Cells/ChatRightText/ChatRightTextCell.swift index 8b9d0dd8..ac4ad11b 100644 --- a/Yep/Views/Cells/ChatRightText/ChatRightTextCell.swift +++ b/Yep/Views/Cells/ChatRightText/ChatRightTextCell.swift @@ -125,8 +125,6 @@ class ChatRightTextCell: ChatRightBaseCell { } } - println("textContentTextView.bounds: \(textContentTextView.frame), \(textContentTextView.text)") - if let sender = message.fromFriend { let userAvatar = UserAvatar(userID: sender.userID, avatarStyle: nanoAvatarStyle) avatarImageView.navi_setAvatar(userAvatar)