UITableView.DequeueReusableCell Method

Definition

Overloads

Name Description
DequeueReusableCell(NSString, NSIndexPath)
DequeueReusableCell(String, NSIndexPath)

Returns a reusable cell identified by reuseIdentifier and located at indexPath.

DequeueReusableCell(NSString)

Returns a reusable table view cell that was created with the given ReuseIdentifier.

DequeueReusableCell(String)

DequeueReusableCell(NSString, NSIndexPath)

[Foundation.Export("dequeueReusableCellWithIdentifier:forIndexPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UITableViewCell DequeueReusableCell(Foundation.NSString reuseIdentifier, Foundation.NSIndexPath indexPath);
[<Foundation.Export("dequeueReusableCellWithIdentifier:forIndexPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DequeueReusableCell : Foundation.NSString * Foundation.NSIndexPath -> UIKit.UITableViewCell
override this.DequeueReusableCell : Foundation.NSString * Foundation.NSIndexPath -> UIKit.UITableViewCell

Parameters

reuseIdentifier
NSString
indexPath
NSIndexPath

Returns

Attributes

Applies to

DequeueReusableCell(String, NSIndexPath)

Returns a reusable cell identified by reuseIdentifier and located at indexPath.

public UIKit.UITableViewCell DequeueReusableCell(string reuseIdentifier, Foundation.NSIndexPath indexPath);
member this.DequeueReusableCell : string * Foundation.NSIndexPath -> UIKit.UITableViewCell

Parameters

reuseIdentifier
String
indexPath
NSIndexPath

Returns

Applies to

DequeueReusableCell(NSString)

Returns a reusable table view cell that was created with the given ReuseIdentifier.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public UIKit.UITableViewCell? DequeueReusableCell(Foundation.NSString identifier);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.DequeueReusableCell : Foundation.NSString -> UIKit.UITableViewCell

Parameters

identifier
NSString

A string identifying the cell type being requested.

Returns

A UITableViewCell associated with the identifier, or null if there is no cells in the queue with that particular identifier.

Attributes

Remarks

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

Application developers targeting iOS 6 and later should use RegisterClassForCellReuse(Type, String) or RegisterNibForCellReuse(UINib, String).Once a UITableViewCell class is registered, calls to DequeueReusableCell(String, NSIndexPath) will return a newly-instantiated object as necessary, rather than returning null.

Application developers should prefer the use of DequeueReusableCell(NSString, NSIndexPath), which returns a UITableViewCell that is properly sized for the index path.

See also

Applies to

DequeueReusableCell(String)

[Foundation.Export("dequeueReusableCellWithIdentifier:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UITableViewCell? DequeueReusableCell(string identifier);
[<Foundation.Export("dequeueReusableCellWithIdentifier:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DequeueReusableCell : string -> UIKit.UITableViewCell
override this.DequeueReusableCell : string -> UIKit.UITableViewCell

Parameters

identifier
String

Returns

Attributes

Applies to