我爲超級UICollectionViewCell創建了自定義類。現在,當我打電話UICollectionView XCode自定義單元格
MyCollectionViewCell *itemView = [self.collectionView cellForItemAtIndexPath:indexPath];
我得到一個警告:
「指針類型不匹配」,(cellForItemAtIndexPath:indexPath]返回UICollectionView細胞)。
我該如何解決?
什麼是MyCollectionViewCell的基類?它應該是一個UICollectionViewCell。 – raidfive
在上面調用哪個函數的方法? –