[英]Values are rendered in different cells after setup in cells which they don't fit to screen
[英]Cells of CollectionView don't fit in screen
您需要重新加载收藏集视图
在您的TableViewCell嵌入方法中
func draw(_ rect: CGRect)
{
// here you have to reaload your collectionView
super.draw(rect)
self.collectionView.realodData()
}
通过调用其DrawRect方法刷新TableCell
optional func tableView(_ tableView: UITableView,
willDisplay cell: UITableViewCell,
forRowAt indexPath: IndexPath)
{
cell.setNeedsDisplay()
}
我希望这对您有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.