在對(duì)cell賦值的過(guò)程中當(dāng)要在特定的位置添加控件碎浇,但是在刷新的時(shí)候火出現(xiàn)添加混亂 ,這時(shí)只需要在自定義cell里面實(shí)現(xiàn)下面的方法
override func prepareForReuse() {
super.prepareForReuse()
self.showbtn.image = nil
}
然后在當(dāng)中把想應(yīng)的圖片置為空即可璃俗。
在對(duì)cell賦值的過(guò)程中當(dāng)要在特定的位置添加控件碎浇,但是在刷新的時(shí)候火出現(xiàn)添加混亂 ,這時(shí)只需要在自定義cell里面實(shí)現(xiàn)下面的方法
override func prepareForReuse() {
super.prepareForReuse()
self.showbtn.image = nil
}
然后在當(dāng)中把想應(yīng)的圖片置為空即可璃俗。