Hi all,
When I use '[collectionView dequeueReusableCellWithReuseIdentifier:@"UICollectionViewCell" forIndexPath:indexPath]' in fuction:
'- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath',
I find item with the same indexPath by 'dequeueReusableCellWithReuseIdentifier' is not the same item from last reloadData.
For example, when UICollectionView reloadData,the item for indexPath 0-0 by 'dequeueReusableCellWithReuseIdentifier' will return the item which is the indexPath 0-4 at last reloadData.
I test many times and find that if UICollectionView have many items with same reuseIdentifier, the function 'dequeueReusableCellWithReuseIdentifier:forIndexPath:' will return the item after UICollectionView reloadData in these items with same reuseIdentifier randomly.
It seems different between UICollectionView and UITableView.UITableView will return the same indexPath cell after reloadData when dequeue cell.
Can you tell me how to reload the same item for UICollectionView?
Thanks,
Jason Xu