首页 > 解决方案 > CollectionView 单元格移出框架

问题描述

我有一个UICollectionView移出集合视图框架的单元格。

func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout,
                        sizeForItemAt indexPath: IndexPath) -> CGSize {
    self.configureCell(cell: self.sizingCell!, forIndexPath: indexPath as NSIndexPath, tag: collectionView.tag)
    return self.sizingCell!.systemLayoutSizeFitting(UILayoutFittingCompressedSize)
}

小鸡链接查看问题

我使用下面的示例代码。 https://github.com/moonlsd/TagFlowExample

标签: iosswiftuicollectionview

解决方案


推荐阅读