【发布时间】:2018-06-12 03:05:24
【问题描述】:
我有一个collectionView,我在tableView 中显示了一个cmets 列表。我看到滚动 collectionView 时 tableView 数据不正确。
我尝试使用 prepareForReuse() 来解决这个问题,但它不起作用。这是我的代码:
override func prepareForReuse() {
super.prepareForReuse()
imageView.image = UIImage()
commentsTableView = UITableView()
}
如果有人可以为此提出解决方案,我将不胜感激。
谢谢。
【问题讨论】:
-
向我们展示您的 CollectionView 和 TableView 代码
标签: ios swift uitableview uicollectionview