Instance Property

numberOfSections

The number of sections in the table view.

Declaration

var numberOfSections: Int { get }

Discussion

UITableView gets the value in this property from its data source and caches it.

See Also

Getting the Number of Rows and Sections

func numberOfRows(inSection: Int) -> Int

Returns the number of rows (table cells) in a specified section.