Add more UICollectionViewCell to an existing UICollectionView
问题 I'm trying to add some more cells to an existing UICollectionView , which is already filled with some cells. I tried to use the CollectionView reloadData but it seems to reload the entire collectionView and I just wanted to add more cells. Can anybody help me? 回答1: The UICollectionView class has methods to add/remove items. E.g., to insert an item at some index (in section 0 ), modify your model accordingly and then do: int indexPath = [NSIndexPath indexPathForItem:index]; NSArray *indexPaths