Upravit

Sdílet prostřednictvím


UITableView.RegisterNibForCellReuse Method

Definition

Overloads

RegisterNibForCellReuse(UINib, NSString)

Specifies the nib file to use for cells with the specified identifier.

RegisterNibForCellReuse(UINib, String)

Registers a nib object (containing a UITableViewCell) with the given identifer string.

RegisterNibForCellReuse(UINib, NSString)

Specifies the nib file to use for cells with the specified identifier.

[Foundation.Export("registerNib:forCellReuseIdentifier:")]
public virtual void RegisterNibForCellReuse (UIKit.UINib nib, Foundation.NSString reuseIdentifier);
abstract member RegisterNibForCellReuse : UIKit.UINib * Foundation.NSString -> unit
override this.RegisterNibForCellReuse : UIKit.UINib * Foundation.NSString -> unit

Parameters

nib
UINib

To be added.

This parameter can be null.

reuseIdentifier
NSString
Attributes

Applies to

RegisterNibForCellReuse(UINib, String)

Registers a nib object (containing a UITableViewCell) with the given identifer string.

public void RegisterNibForCellReuse (UIKit.UINib nib, string reuseIdentifier);
member this.RegisterNibForCellReuse : UIKit.UINib * string -> unit

Parameters

nib
UINib

A nib object created from a nib file. This value cannot be null.

reuseIdentifier
String

A string to use as an identifier for the cell. This value cannot be null.

Remarks

After a nib object has been registered with a table view, calling DequeueReusableCell(NSString) with the correct identifer will cause the table view to instantiate the cell from the nib object if there is not already an instance in the reuse queue.

Applies to