UIKit.UITableViewSource.GetCell Method
Called by the table view to get populate the row at indexPath with a cell view.

Syntax

[Foundation.Export("tableView:cellForRowAtIndexPath:")]
public abstract UITableViewCell GetCell (UITableView tableView, Foundation.NSIndexPath indexPath)

Parameters

tableView
Table view requesting the cell.
indexPath
Location of the row where the cell will be displayed.

Returns

An object that inherits from UIKit.UITableViewCell that the table can use for the specified row. Do not return null or an assertion will be raised.

Remarks

This method is called once for each row that is visible on screen. During scrolling, it is called additional times as new rows come into view. Cells that disappear from view are cached by the table view. The implementation of this method should call the table view's UITableView.DequeueReusableCell(Foundation.NSString) method to obtain a cached cell object for reuse (if null is returned, create a new cell instance). Be sure to reset all properties of a reused cell.

Declared in [UITableViewDataSource]

Requirements

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