A string used to identify a cell that is reusable.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
var reuseIdentifier: String? { get }
Discussion
The reuse identifier is associated with a UITable
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:
and cannot be changed thereafter. A UITable
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 dequeue
method.