Editar

Compartir a través de


UITableView.ReloadRows(NSIndexPath[], UITableViewRowAnimation) Method

Definition

Reloads specific rows with the given animation effect.

[Foundation.Export("reloadRowsAtIndexPaths:withRowAnimation:")]
public virtual void ReloadRows (Foundation.NSIndexPath[] atIndexPaths, UIKit.UITableViewRowAnimation withRowAnimation);
abstract member ReloadRows : Foundation.NSIndexPath[] * UIKit.UITableViewRowAnimation -> unit
override this.ReloadRows : Foundation.NSIndexPath[] * UIKit.UITableViewRowAnimation -> unit

Parameters

atIndexPaths
NSIndexPath[]

An array of NSIndexPath objects that indicate which rows to reload.

withRowAnimation
UITableViewRowAnimation

The type of animation to use. The animation chosen affects both the way the old cell is animated out as well as how the new cell is animated into view.

Attributes

Remarks

Reloading a row means the data source is asked for a new cell for that row, which the table animates into place (animating the old cell off screen). Use this method to alert the user that the value of the cell is changing. If notifying the user is not important simply get the cell for a particular row and update its value.

When this method is called within a BeginUpdates()-EndUpdates() animation block it behaves like DeleteRows(NSIndexPath[], UITableViewRowAnimation) - the indexes passed to the method are specified in the state of the table view prior to any updates. This happens regardless of the order of the insertion, deletion and reloading method calls within the animation block.

Applies to