UICollectionView registerClass: forCellWithReuseIdentifier method breaks UICollectionView
Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:
"If you've already created your UICollectionView in Storyboard, connected your
dataSource
and delegate
, and you have added all of the required methods:numberOfItemsInSection
numberOfSectionsInCollectionView
cellForItemAtIndexPath
registerClass
/ registerCell
method isn't required."Reference:
registerClass: forCellWithReuseIdentifier:
.
No comments:
Post a Comment