iOSTableDataSource.SectionTitle
From Xojo Documentation
Method
iOSTableDataSource.SectionTitle(table As iOSTable, section As Integer) As Text
Supported on Mobile(iOS).
Supported on Mobile(iOS).
Return the title for the section.
Parameters
Parameter | Description |
---|---|
table | The iOSTable instance using this data source. |
section | This is the section that has been requested. |
Notes
If you are not using sections, you can return empty text ("") here.
When using sections, return the name for the specified section. For example, if you are displaying names with sections for each letter of the alphabet, you might return "A" when section of 0 is passed in as a parameter.
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