Returns a reusable table-view cell object located by its identifier.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
A string identifying the cell object to be reused. This parameter must not be
UITable object with the associated
nil if no such object exists in the reusable-cell queue.
For performance reasons, a table view’s data source should generally reuse
UITable objects when it assigns cells to rows in its
table method. A table view maintains a queue or list of
UITable objects that the data source has marked for reuse. Call this method from your data source object when asked to provide a new cell for the table view. This method dequeues an existing cell if one is available or creates a new one using the class or nib file you previously registered. If no cell is available for reuse and you did not register a class or nib file, this method returns
If you registered a class for the specified
identifier and a new cell must be created, this method initializes the cell by calling its
init(style: method. For nib-based cells, this method loads the cell object from the provided nib file. If an existing cell was available for reuse, this method calls the cell’s
prepare method instead.