UITableView.RegisterNibForCellReuse Method

Definition

Overloads

Name Description
RegisterNibForCellReuse(UINib, NSString)
RegisterNibForCellReuse(UINib, String)

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

RegisterNibForCellReuse(UINib, NSString)

[Foundation.Export("registerNib:forCellReuseIdentifier:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void RegisterNibForCellReuse(UIKit.UINib? nib, Foundation.NSString reuseIdentifier);
[<Foundation.Export("registerNib:forCellReuseIdentifier:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RegisterNibForCellReuse : UIKit.UINib * Foundation.NSString -> unit
override this.RegisterNibForCellReuse : UIKit.UINib * Foundation.NSString -> unit

Parameters

nib
UINib
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