UIKit.UITableView.DequeueReusableCell Method
Returns a reusable table view cell for the given reuseIdentifier, properly sized for the indexPath.

Syntax

[Foundation.Export("dequeueReusableCellWithIdentifier:forIndexPath:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual UITableViewCell DequeueReusableCell (Foundation.NSString reuseIdentifier, Foundation.NSIndexPath indexPath)

See Also

UITableView.RegisterClassForCellReuse
UITableView.RegisterNibForCellReuse

Parameters

reuseIdentifier
A string identifying the cell type being requested.
indexPath
The specific cell being requested.

Returns

A UIKit.UITableViewCell associated with the identifier.

Remarks

This is the preferred method to call for cell reuse, as it calls UITableViewSource.GetHeightForRow and returns a properly-sized UIKit.UITableViewCell.

This method must be preceded by cell registration using UITableView.RegisterClassForCellReuse or UITableView.RegisterNibForCellReuse. Otherwise, an NSInternalInconsistencyException exception will be raised at runtime.

The cell reuse cache is important for efficiency and application developers should use it for dynamic tables.

Requirements

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