UITableView
-
Registers
type.Nib
fortype.Identifier
Declaration
Swift
public func registerNib<T: UITableViewCell>(of type: T.Type)
Parameters
type
UITableViewCell
subclass to register -
Registers
type
fortype.Identifier
Declaration
Swift
public func registerClass<T: UITableViewCell>(of type: T.Type)
Parameters
type
UITableViewCell
subclass to register -
Dequeues a cell of type
T
for reuseIdentifierT.Identifier
Declaration
Swift
public func dequeueCell<T: UITableViewCell>(for indexPath: IndexPath) -> T
Parameters
indexPath
indexPath of cell
Return Value
Your registered
UITableViewCell
subclass
-
Registers
type.Nib
fortype.Identifier
Declaration
Swift
public func registerNib<T: UITableViewHeaderFooterView>(of type: T.Type)
Parameters
type
UITableViewHeaderFooterView
subclass to register -
Registers
type
fortype.Identifier
Declaration
Swift
public func registerClass<T: UITableViewHeaderFooterView>(of type: T.Type)
Parameters
type
UITableViewHeaderFooterView
subclass to register -
Dequeues a headerFooterView of type
T
for reuseIdentifierT.Identifier
Declaration
Swift
public func dequeueHeaderFooterView<T: UITableViewHeaderFooterView>() -> T
Parameters
indexPath
indexPath of headerFooterView
Return Value
Your registered
UITableViewHeaderFooterView
subclass
-
Checks if the provided indexPath represents a row in the tableview
Declaration
Swift
func hasRow(for indexPath: IndexPath) -> Bool
Parameters
indexPath
Return Value
-
Checks if the provided section exists in the tableview
Declaration
Swift
func has(section: Int) -> Bool
Parameters
section
Return Value