2020-09-02

Thread 1: Exception: "the view returned from -collectionView:viewForSupplementaryElementOfKind:atIndexPath (UICollectionElementKindSectionFooter,<NSIndexPath: 0x9daa4b3f8da35997> {length = 2, path = 1 - 0}) was not retrieved by calling -dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath: or is nil (<UICollectionReusableView: 0x139e9b3a0; frame = (0 0; 0 0); layer = <CALayer: 0x283d7f240>>)"

collectionView UICollectionReusableView 没有找到对对应注册的view 需要 viewForSupplementaryElementOfKind代理方法中添加
UICollectionElementKindSectionHeader
UICollectionElementKindSectionFooter
的对应的方法。可以复用的。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。