UITableView

class UITableView : UIScrollView, NSCoding, UIDataSourceTranslating
  • Register UITableViewCell type

    Declaration

    Swift

    public func register(cellType: UITableViewCell.Type)
  • Register UITableViewCell types

    Declaration

    Swift

    public func register(cellTypes: UITableViewCell.Type...)
  • Dequeue generic type element of UITableViewCell for indexPath

    Declaration

    Swift

    public func dequeue<Element>(cellType: Element.Type, for indexPath: IndexPath) -> Element where Element : UITableViewCell

    Parameters

    cellType

    Element.Type

    indexPath

    header for IndexPath

  • Check if the curent indexPath is valid

    Declaration

    Swift

    public func isIndexPathValid(_ indexPath: IndexPath) -> Bool