Returns a reusable table-view cell object for the specified reuse identifier and adds it to the table.
- iOS 6.0+
- tvOS 9.0+
A string identifying the cell object to be reused. This parameter must not be
The index path specifying the location of the cell. Always specify the index path provided to you by your data source object. This method uses the index path to perform additional configuration based on the cell’s position in the table view.
UITable object with the associated reuse identifier. This method always returns a valid cell.
Call this method only from the
table method of your table view data source object. This method returns an existing cell of the specified type, if one is available, or it creates and returns a new cell using the class or storyboard you provided earlier. Do not call this method outside of your data source's
table method. If you need to create cells at other times, call
When creating new cells from your storyboard or nib file, this method loads the cell object and initializes it using its
init(coder:) method. When creating cells from a registered class, this method creates the cell and initializes it 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.