从VC

2014-12-13 68 views
0
更新单个UICollectionviewCell

因此,我有一个VC允许ppl向collectionview中列出的任何用户发送好友请求,并且我希望在请求等待时从一个添加按钮切换到加载指示器响应,但我不知道如何做到这一点,而不调用[self.collectionview reloadData],有没有办法改变单个单元格w的外观。重新加载整个collectionview?从VC

回答

0

如果你知道UICollectionViewCell指针 - 呼叫

NSIndexPath *indexPath = [self.collectionView indexPathForCell:cell]; 
[self.collectionView reloadItemsAtIndexPaths:@[indexPath]]; 
0

使用方法reloadItemsAtIndexPaths原样

[self.collectionView reloadItemsAtIndexPaths:@[indexPathOfYourCell]];