UITableView
extension UITableView
-
Register a cell view type that implements ReusableView protocol.
Declaration
Swift
public func register<T>(_: T.Type) where T : UITableViewCell, T : ReusableViewParameters
_the cell class to register (ignored)
-
Register a cell view type that implements the NibLoadableView protocol.
Declaration
Swift
public func register<T>(_: T.Type) where T : UITableViewCell, T : NibLoadableView, T : ReusableViewParameters
_the cell class to register (ignored)
-
Obtain a cell view to use to render cell content in a collection view.
Declaration
Swift
public func dequeueReusableCell<T: UITableViewCell>(at indexPath: IndexPath) -> T where T: ReusableViewParameters
indexPaththe location of the cell that is being rendered
Return Value
instance of a T class
-
Obtain a cell view for the given index.
Declaration
Swift
public func cellForRow<T>(at indexPath: IndexPath) -> T? where T : UITableViewCell, T : ReusableViewParameters
indexPaththe location of the cell to return
Return Value
optional cell instance (nil if index path is out of bounds)
View on GitHub
UITableView Extension Reference