如题。需要自己绘制吗?
需要自己绘制的,因为cell的位置并不是固定的。
//返回屏幕内cell及其装饰视图
func layoutAttributesForElementsInRect(_ rect: CGRect) -> [UICollectionViewLayoutAttributes]?
//实现每个装饰视图
func layoutAttributesForDecorationViewOfKind(_ elementKind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionViewLayoutAttributes?
使用这两个方法就行了
是的,可以在尾视图上搞一下