From 16be53a8f2ba94055ce4ccddb9ddbbc0f538dfd3 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Mon, 26 Oct 2015 17:06:05 +0800 Subject: [PATCH] removeObserver --- Yep/Views/Cells/Conversation/ConversationCell.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Yep/Views/Cells/Conversation/ConversationCell.swift b/Yep/Views/Cells/Conversation/ConversationCell.swift index 42422599..392ca394 100644 --- a/Yep/Views/Cells/Conversation/ConversationCell.swift +++ b/Yep/Views/Cells/Conversation/ConversationCell.swift @@ -34,6 +34,11 @@ class ConversationCell: UITableViewCell { @IBOutlet weak var chatLabel: UILabel! @IBOutlet weak var timeAgoLabel: UILabel! + deinit { + + NSNotificationCenter.defaultCenter().removeObserver(self) + } + override func awakeFromNib() { super.awakeFromNib() // Initialization code