Upravit

Sdílet prostřednictvím


UITableView.ReloadSections(NSIndexSet, UITableViewRowAnimation) Method

Definition

Reloads specific sections with an animation effect.

[Foundation.Export("reloadSections:withRowAnimation:")]
public virtual void ReloadSections (Foundation.NSIndexSet sections, UIKit.UITableViewRowAnimation withRowAnimation);
abstract member ReloadSections : Foundation.NSIndexSet * UIKit.UITableViewRowAnimation -> unit
override this.ReloadSections : Foundation.NSIndexSet * UIKit.UITableViewRowAnimation -> unit

Parameters

sections
NSIndexSet

The sections to be reloaded.

withRowAnimation
UITableViewRowAnimation

Specifies which animation effect to use. This determines how the old sections are animated out as well as how the new sections are animated into view.

Attributes

Remarks

Reloading a section means the data source is asked for news cell for the specified sections, which the table animates into place (animating the old cells off screen). Use this method to alert the user that the cells in the given sections are changing. If notifying the user is not important simply get the relevant cells and update their values directly.

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