Contents

tableView(_:numberOfRowsInSection:)

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

Providing the number of rows and sections