SNV7 SNV7 - 1 year ago 100
Objective-C Question

Refreshing a UICollectionview

Does anyone know how to reload/refresh a UICollectionView while the collection view is being displayed? Basically I'm looking for something similar to the standard reloadData method for a UITableview.

Answer Source

You can just call [self.myCollectionView reloadData]; Individual sections and items can also be reloaded:

[self.myCollectionView reloadSections:indexSet];
[self.myCollectionView reloadItemsAtIndexPaths:arrayOfIndexPaths];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download