For those who are looking for a Swifty answer, add this function to your CustomCell class:
override func prepareForReuse() {
contentView.subviews.forEach({ $0.removeFromSuperview() })
// replace contentView with the superview of the repeating content.
}