The delegate of a
UITable object must adopt the
UITable protocol. Optional methods of the protocol allow the delegate to manage selections, configure section headings and footers, help to delete and reorder cells, and perform other actions.
- iOS 2.0+
- tvOS 9.0+
Many methods of the
UITable protocol take
NSIndex objects as parameters and return values. UIKit declares a category on
NSIndex that enables you to get the represented row index (
row property) and section index (
section property), and to construct an index path from a given row index and section index (
init(row: method). Because rows are located within their sections, you usually must evaluate the section index number before you can identify the row by its index number.