jjzjj

cellForItemAtIndexPath

全部标签

ios - 未调用 cellForItemAtIndexPath 但 numberOfItemsInSection 调用

这可能是重复的帖子,但我没有找到解决方案。我将UICollectionView设置为:UINib*nib=[UINibnibWithNibName:@"CollectionViewCell"bundle:[NSBundlemainBundle]];[_collectionViewregisterNib:nibforCellWithReuseIdentifier:@"bCell"];(我尝试设置委托(delegate),没有委托(delegate)等)。然后,只有-(NSInteger)collectionView:(UICollectionView*)collectionViewnum

ios - UICollectionView 的 cellForItemAtIndexPath 没有被调用

这只是我第二次使用UICollectionView,也许我已经咬得比我能咀嚼的多,但是:我正在实现一个UICollectionView(myCollectionView),它使用我已经子类化的自定义UICollectionViewCell。子类单元格(FullReceiptCell)包含UITableView,并且是viewcontroller的大小。我正在尝试允许在FullReceiptCells之间进行水平滚动。包含myCollectionView的子类UICollectionViewController被推送到导航Controller堆栈。目前,myCollectionViewl

ios - UICollectionView 的 cellForItemAtIndexPath 没有被调用

这只是我第二次使用UICollectionView,也许我已经咬得比我能咀嚼的多,但是:我正在实现一个UICollectionView(myCollectionView),它使用我已经子类化的自定义UICollectionViewCell。子类单元格(FullReceiptCell)包含UITableView,并且是viewcontroller的大小。我正在尝试允许在FullReceiptCells之间进行水平滚动。包含myCollectionView的子类UICollectionViewController被推送到导航Controller堆栈。目前,myCollectionViewl