UICollectionView.ReloadData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reloads all of the data for the UICollectionView.
[Foundation.Export("reloadData")]
public virtual void ReloadData ();
abstract member ReloadData : unit -> unit
override this.ReloadData : unit -> unit
- Attributes
Remarks
Calling this method will cause the UICollectionView to discard any visible items and then redisplay them.
Data manipulation methods such as InsertItems(NSIndexPath[]) or DeleteItems(NSIndexPath[]) automatically update the UICollectionView's data and do not require this potentially-expensive method to be called.
Applies to
See also
- <xref:UIKit.UICollectionView.ReloadItems>
- <xref:UIKit.UICollectionView.ReloadSections>