iOSTableDataSource.RowCount

From Xojo Documentation

Method

iOSTableDataSource.RowCount(table As iOSTable, section As Integer) As Integer

Supported on Mobile(iOS).

Return the number of rows for the section.

Parameters

Parameter Description
table The iOSTable instance using this data source.
section This is the section that has been requested.

Notes

Your class should return the number of rows in your data source for this section. For example, if you are showing a list of names in sections for the first letter of the last name, then this method would return the number of names in the specified section.

Sample Code

Refer to the data source example in the User Guide to see how to set up a Data Source that returns names, with sections for the first letter of each last name.

You can also refer to the sample project included with Xojo:

  • Examples/iOS/Controls/Table/TableDataSource