Editar

Compartir a través de


UICollectionView.ReloadData Method

Definition

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>