我为超级UICollectionViewCell创建了自定义类。现在,当我打电话UICollectionView XCode自定义单元格
MyCollectionViewCell *itemView = [self.collectionView cellForItemAtIndexPath:indexPath];
我得到一个警告:
“指针类型不匹配”,(cellForItemAtIndexPath:indexPath]返回UICollectionView细胞)。
我该如何解决?
什么是MyCollectionViewCell的基类?它应该是一个UICollectionViewCell。 – raidfive
在上面调用哪个函数的方法? –