Initializes a table cell with a style and a reuse identifier and returns it to the caller.
- iOS 3.0+
- tvOS 9.0+
A constant indicating a cell style. See
UITablefor descriptions of these constants.
View Cell .Cell Style
A string used to identify the cell object if it is to be reused for drawing multiple rows of a table view. Pass
nilif the cell object is not to be reused. You should use the same reuse identifier for all cells of the same form.
UITable object or
nil if the object could not be created.
This method is the designated initializer for the class. The reuse identifier is associated with those cells (rows) of a table view that have the same general configuration, minus cell content. In its implementation of
table, the table view's data source calls the
dequeue, passing in a reuse identifier, to obtain the cell object to use as the basis for the current row.
If you want a table cell that has a configuration different that those defined by
style, you must create your own custom cell. If you want to set the row height of cells on an individual basis, implement the delegate method