I have a tableView to display timings of week days
timingsArray is used in tableView to display timings
timingsArray of type timingObj
cla
You should implement prepareForReuse
in your custom cell class, in which you reset what needs to be reset. For example:
class timingCell: UITableViewCell {
@IBOutlet weak var dayLabel: UILabel!
@IBOutlet weak var timeLabel: UILabel!
func prepareForReuse() {
super.prepareForReuse()
cell.timeLabel.text = nil
cell.dayLabel.text = nil
}
}