草庐IT

pizzaInfoCellData

全部标签

ios - UICollectionview 在滚动时更改选择/禁用选择 - iOS

我在uicollectionview单元格上填充数据并选择和取消选择,一切正常,但当我开始滚动时,有时选择不存在,有时选择随单元格而变化。下面是代码,非常感谢帮助。-(UICollectionViewCell*)collectionView:(UICollectionView*)collectionViewcellForItemAtIndexPath:(NSIndexPath*)indexPath{cell=(BYOCollectionCell*)[collectionViewdequeueReusableCellWithReuseIdentifier:@"CVCCell"forInd