Xcode只在UiCollectionView中重新加载一个单元格

use*_*228 5 ios uicollectionview uicollectionviewcell

我想重新加载一个单元格UICollectionView.

我知道UITableView它是这样的:

[self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPathOfYourCell, nil] withRowAnimation:UITableViewRowAnimationNone];
Run Code Online (Sandbox Code Playgroud)

但是怎么样UICollectionView

Mic*_*uba 6

使用方法reloadItemsAtIndexPaths:

[self.collectionView reloadItemsAtIndexPaths:@[indexPathOfYourCell]];
Run Code Online (Sandbox Code Playgroud)