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.
reloadData() Reloads all of the data for the collection view.
For the listing details of each item, people use UITableView because it shows more info on each item. The UICollectionView class manages an ordered collection of data items and presents them using customizable layouts.
An object that manages an ordered collection of data items and presents them using customizable layouts.
Use Supplementary View to Add Header and Footer in UICollectionView.
You can just call:
[self.myCollectionView reloadData];
Individual sections and items can also be reloaded:
[self.myCollectionView reloadSections:indexSet]; [self.myCollectionView reloadItemsAtIndexPaths:arrayOfIndexPaths];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With