Instance Method

tableView(_:numberOfRowsInSection:)

Required.

Tells the data source to return the number of rows in a given section of a table view.

Declaration

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

Parameters

tableView

The table-view object requesting this information.

section

An index number identifying a section in tableView.

Return Value

The number of rows in section.

See Also

Related Symbols

func numberOfSections(in: UITableView)

Asks the data source to return the number of sections in the table view.