UITableViewCells with UIButton overlaps while scrolling

just replace the line

  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]

is now

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:nil];

  (or) //use this in cell for rowatindexpath

for(UIView *view in cell.contentView.subviews){
    if ([view isKindOfClass:[UIView class]]) {
        [view removeFromSuperview];
    }
}

Leave a Comment