UIKit.UITableView.InsertSections Method
Inserts a section (or sections) from a table view, with an option to animate the operation.

Syntax

[Foundation.Export("insertSections:withRowAnimation:")]
public virtual void InsertSections (Foundation.NSIndexSet sections, UITableViewRowAnimation withRowAnimation)

Parameters

sections
A set of section identifiers to insert. If a section already exists at a given index, it is moved up down one index location.
withRowAnimation
What type of animation to use when inserting the rows (eg. fade in or slide in from left)

Remarks

UITableView calls the relevant UIKit.UITableViewSource methods immediately afterwards to get the cells and other content to display the visible rows.

When this method is called inside an animation block defined by UITableView.BeginUpdates and UITableView.EndUpdates, any insertions of rows or sections are deferred until after deletions have been processed. This happens regardless of the ordering of the insertion and deletion method calls within the animation block.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0