Commit ed3612fd5a2ddf32db46ad21e2e7d5cd867ff587
1 parent
e9ea7bd9
cell 复用
Showing
1 changed file
with
4 additions
and
0 deletions
metaCode/Classes/Main/HomePage/View/CNLiveDownSlideTodayRecommendCell.swift
| @@ -21,6 +21,10 @@ class CNLiveDownSlideTodayRecommendCell: UITableViewCell { | @@ -21,6 +21,10 @@ class CNLiveDownSlideTodayRecommendCell: UITableViewCell { | ||
| 21 | } | 21 | } |
| 22 | set{ | 22 | set{ |
| 23 | _slideModel = newValue! | 23 | _slideModel = newValue! |
| 24 | + | ||
| 25 | + for obj in contentView.subviews{ | ||
| 26 | + obj.removeFromSuperview() | ||
| 27 | + } | ||
| 24 | self.setupNewUI(model: _slideModel!) | 28 | self.setupNewUI(model: _slideModel!) |
| 25 | } | 29 | } |
| 26 | } | 30 | } |