- sections
- The sections to be reloaded.
- withRowAnimation
- 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.
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 UITableView.BeginUpdates-UITableView.EndUpdates animation block it behaves like UITableView.DeleteRows(Foundation.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.