Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.44 KB

List.md

File metadata and controls

67 lines (44 loc) · 1.44 KB

List

@available(iOS 9.0, *) public class List: UITableView

Inheritance

UITableView, UITableViewDataSource, UITableViewDelegate

Initializers

init(defaultCellHeight:estimatedCellHeight:_:)

public init(defaultCellHeight: Float? = nil, estimatedCellHeight: Float? = nil, _ closure: () -> [UIView])

Methods

didSelectHandler(_:)

@discardableResult func didSelectHandler(_ action: @escaping (UIView) -> Void) -> Self

configureCell(_:)

@discardableResult func configureCell(_ action: @escaping (UITableViewCell) -> Void) -> Self

numberOfSections(in:)

public func numberOfSections(in tableView: UITableView) -> Int

tableView(_:numberOfRowsInSection:)

public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int

tableView(_:cellForRowAt:)

public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell

tableView(_:heightForRowAt:)

public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat

tableView(_:estimatedHeightForRowAt:)

public func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat

tableView(_:didSelectRowAt:)

public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)