Here is how I use my custom UITableViewCell RunningTableViewCell inside UIViewController:
RunningTableViewCell
UIViewController
func tableView(tableView: UITableView, ce
You need to override prepareForReuse in the cell. And remove it from tableView:indexPath:. So when you scroll the cell is going to be reused but the isBotton and isTop vars will be reseted.
prepareForReuse
tableView:indexPath:
isBotton
isTop
override func prepareForReuse() { self.isBottom = false self.isTop = false }