iOS Assertion Failure in UICollectionView
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm getting the error ... *** Assertion failure in -[ UICollectionView _dequeueReusableViewOfKind : withIdentifier : forIndexPath :], / SourceCache / UIKit / UIKit - 2372 / UICollectionView . m : 2249 When trying to display a UICollectionView. The lines causing it are... static NSString * CellIdentifier = @ "Cell" ; UICollectionViewCell * cell = [ collectionView dequeueReusableCellWithReuseIdentifier : CellIdentifier forIndexPath : indexPath ]; Error happening on the dequeue. There are no other errors so I'm struggling to know