From d2016ad60cce46f4a22fcd6f2d89d17322c0eef5 Mon Sep 17 00:00:00 2001 From: kevinzhow Date: Sat, 31 Oct 2015 06:01:43 +0800 Subject: [PATCH] make sure image was set --- Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.swift b/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.swift index 26eebbcb..70c1aada 100644 --- a/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.swift +++ b/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.swift @@ -86,7 +86,10 @@ class ChatLeftVideoCell: ChatBaseCell { UIView.animateWithDuration(YepConfig.ChatCell.imageAppearDuration, delay: 0.0, options: .CurveEaseInOut, animations: { () -> Void in self.thumbnailImageView.alpha = 1.0 - }, completion: { (finished) -> Void in + }, completion: { [weak self] finished in + dispatch_async(dispatch_get_main_queue()) { + self?.thumbnailImageView.image = image + } }) } }