UITableView.RegisterNibForCellReuse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.