UITableView.BeginUpdates 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.
Call this method before inserting, updating or selecting rows that should be animated as one operation. EndUpdates() must be called after the modifications are complete.
[Foundation.Export("beginUpdates")]
public virtual void BeginUpdates ();
abstract member BeginUpdates : unit -> unit
override this.BeginUpdates : unit -> unit
- Attributes
Remarks
After calling this method, subsequent insertions, deletions and selection operations (eg. IndexPathsForVisibleRows or CellAt(NSIndexPath)) will be animated simultaneously. This group of methods must conclude with a call to EndUpdates(). These method pairs can be nested.
If the developer does not make the insertion, deletion and selection calls inside this block, table attributes such as row count might become invalid. Developers should not call ReloadData() within the group, otherwise they will need to perform any animations manually.