Instance Property

reuseIdentifier

A string used to identify a cell that is reusable.

Declaration

var reuseIdentifier: String? { get }

Discussion

The reuse identifier is associated with a UITableViewCell object that the table-view’s delegate creates with the intent to reuse it as the basis (for performance reasons) for multiple rows of a table view. It is assigned to the cell object in init(frame:reuseIdentifier:) and cannot be changed thereafter. A UITableView object maintains a queue (or list) of the currently reusable cells, each with its own reuse identifier, and makes them available to the delegate in the dequeueReusableCell(withIdentifier:) method.

See Also

Reusing Cells

func prepareForReuse()

Prepares a reusable cell for reuse by the table view'€™s delegate.