UICollectionView
刷新数据并更改单元格的位置。我怎么能阻止它?我不想在每次滚动时调用cellForItemAtIndexPath
吗?
我没有太多数据。
- (UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath:(NSIndexPath *)indexPath {
CCell *cell = [cv dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath];
cell.logo.image=[UIImage imageNamed:[NSString stringWithFormat:@"%@.jpg",news[indexPath.row]]];
return cell;
}