From 7242dfb3871cd5cf3dade7f6bc39bb599f85e35c Mon Sep 17 00:00:00 2001 From: nixzhu Date: Wed, 21 Oct 2015 13:38:11 +0800 Subject: [PATCH] prepareForReuse for DiscoverCardUserCell --- Yep/Views/Cells/DiscoverCardUser/DiscoverCardUserCell.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Yep/Views/Cells/DiscoverCardUser/DiscoverCardUserCell.swift b/Yep/Views/Cells/DiscoverCardUser/DiscoverCardUserCell.swift index be18abf1..20b92dbe 100644 --- a/Yep/Views/Cells/DiscoverCardUser/DiscoverCardUserCell.swift +++ b/Yep/Views/Cells/DiscoverCardUser/DiscoverCardUserCell.swift @@ -52,6 +52,12 @@ class DiscoverCardUserCell: UICollectionViewCell { userSkillsCollectionView.registerNib(UINib(nibName: skillCellIdentifier, bundle: nil), forCellWithReuseIdentifier: skillCellIdentifier) } + + override func prepareForReuse() { + super.prepareForReuse() + + avatarImageView.image = nil + } func configureWithDiscoveredUser(discoveredUser: DiscoveredUser, collectionView: UICollectionView, indexPath: NSIndexPath) {