Interface

# iOSMobileTableDataSourceIndex

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

This interface provides the ability to add an index (such as the a-z index in Apple's Contacts app for iOS) user interface element to a `iOSMobileTable</api/ios/iosmobiletable>`.

The index does not have to be a-z. It can be any range of characters you wish.

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                                       | Parameters                                                                                    | Returns                            | Shared |
|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|------------------------------------|--------|
| `IndexTitles<iosmobiletabledatasourceindex.indextitles>`                   | table As `iOSMobileTable</api/ios/iosmobiletable>`                                            | `String()</api/data_types/string>` |        |
| `SectionForIndexTitle<iosmobiletabledatasourceindex.sectionforindextitle>` | table As `iOSMobileTable</api/ios/iosmobiletable>`, title As `String</api/data_types/string>` | `Integer</api/data_types/integer>` |        |

## Method descriptions

<div id="iosmobiletabledatasourceindex.indextitles">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTableDataSourceIndex.IndexTitles

**IndexTitles**(table As `iOSMobileTable</api/ios/iosmobiletable>`) As `String()</api/data_types/string>`

> Return the titles for the selected index. if you do not wish to display the index, return an empty `String</api/data_types/string>` `array</api/language/array>`.

<div id="iosmobiletabledatasourceindex.sectionforindextitle">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTableDataSourceIndex.SectionForIndexTitle

**SectionForIndexTitle**(table As `iOSMobileTable</api/ios/iosmobiletable>`, title As `String</api/data_types/string>`) As `Integer</api/data_types/integer>`

> Return the section number for *table* based upon the *title* passed.
>
> If you do not wish to display the index, return 0.

## Compatibility

|                       |        |
|-----------------------|--------|
| **Project Types**     | Mobile |
| **Operating Systems** | iOS    |

<div class="seealso">

`iOSMobileTable</api/ios/iosmobiletable>` control; `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>`, `iOSMobileTableDataSourceEditing</api/ios/iosmobiletabledatasourceediting>`, `iOSMobileTableDataSourceReordering</api/ios/iosmobiletabledatasourcereordering>` interfaces

</div>
