Class

# iOSMobileTable

<div class="rst-class">

forsearch

</div>

Listbox

<div class="rst-class">

forsearch

</div>

Table

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

## Description

An <span class="title-ref">iOSMobileTable</span> is used for displaying a list of data.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                            | Type                                                          | Read-Only | Shared |
|-----------------------------------------------------------------|---------------------------------------------------------------|-----------|--------|
| `AccessibilityHint<iosmobiletable.accessibilityhint>`           | `String</api/data_types/string>`                              |           |        |
| `AccessibilityLabel<iosmobiletable.accessibilitylabel>`         | `String</api/data_types/string>`                              |           |        |
| `AllowRefresh<iosmobiletable.allowrefresh>`                     | `Boolean</api/data_types/boolean>`                            |           |        |
| `AllowSearch<iosmobiletable.allowsearch>`                       | `Boolean</api/data_types/boolean>`                            |           |        |
| `BackgroundColor<iosmobiletable.backgroundcolor>`               | `ColorGroup</api/graphics/colorgroup>`                        |           |        |
| `ControlCount<iosmobiletable.controlcount>`                     | `Integer</api/data_types/integer>`                            |           |        |
| `DataSource<iosmobiletable.datasource>`                         | `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>` |           |        |
| `EditingEnabled<iosmobiletable.editingenabled>`                 | `Boolean</api/data_types/boolean>`                            |           |        |
| `Enabled<iosmobiletable.enabled>`                               | `Boolean</api/data_types/boolean>`                            |           |        |
| `EstimatedRowHeight<iosmobiletable.estimatedrowheight>`         | `Integer</api/data_types/integer>`                            |           |        |
| `Format<iosmobiletable.format>`                                 | `Formats<iosmobiletable.formats>`                             | ✓         |        |
| `Height<iosmobiletable.height>`                                 | `Integer</api/data_types/integer>`                            | ✓         |        |
| `Left<iosmobiletable.left>`                                     | `Integer</api/data_types/integer>`                            | ✓         |        |
| `Name<iosmobiletable.name>`                                     | `String</api/data_types/string>`                              | ✓         |        |
| `Parent<iosmobiletable.parent>`                                 | `MobileUIControl</api/user_interface/mobile/mobileuicontrol>` | ✓         |        |
| `SectionBackgroundColor<iosmobiletable.sectionbackgroundcolor>` | `ColorGroup</api/graphics/colorgroup>`                        |           |        |
| `SectionCount<iosmobiletable.sectioncount>`                     | `Integer</api/data_types/integer>`                            | ✓         |        |
| `SectionTextColor<iosmobiletable.sectiontextcolor>`             | `ColorGroup</api/graphics/colorgroup>`                        |           |        |
| `SelectedRow<iosmobiletable.selectedrow>`                       | `Pair</api/language/pair>`                                    | ✓         |        |
| `SelectedRowColor<iosmobiletable.selectedrowcolor>`             | `ColorGroup</api/graphics/colorgroup>`                        |           |        |
| `TintColor<iosmobiletable.tintcolor>`                           | `ColorGroup</api/graphics/colorgroup>`                        |           |        |
| `Top<iosmobiletable.top>`                                       | `Integer</api/data_types/integer>`                            | ✓         |        |
| `Visible<iosmobiletable.visible>`                               | `Boolean</api/data_types/boolean>`                            |           |        |
| `Width<iosmobiletable.width>`                                   | `Integer</api/data_types/integer>`                            | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                                      | Parameters                                                                                                                                                                                                                                                                                           | Returns                                                               | Shared |
|---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|--------|
| `AddConstraint<iosmobiletable.addconstraint>`                             | constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`                                                                                                                                                                                                                                    |                                                                       |        |
| `AddControl<iosmobiletable.addcontrol>`                                   | child As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`, isBeingAdded As `Boolean</api/data_types/boolean>` = `False</api/language/false>`                                                                                                                                            |                                                                       |        |
| `AddRow<iosmobiletable.addrow>`                                           | section As `Integer</api/data_types/integer>`, value As `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>`                                                                                                                                                                        |                                                                       |        |
|                                                                           | section As `Integer</api/data_types/integer>`, value As `String</api/data_types/string>`                                                                                                                                                                                                             |                                                                       |        |
|                                                                           | value As `String</api/data_types/string>`                                                                                                                                                                                                                                                            |                                                                       |        |
| `AddRowAt<iosmobiletable.addrowat>`                                       | section As `Integer</api/data_types/integer>`, index As `Integer</api/data_types/integer>`                                                                                                                                                                                                           |                                                                       |        |
|                                                                           | section As `Integer</api/data_types/integer>`, index As `Integer</api/data_types/integer>`, value As `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>`                                                                                                                           |                                                                       |        |
|                                                                           | section As `Integer</api/data_types/integer>`, index As `Integer</api/data_types/integer>`, value As `String</api/data_types/string>`                                                                                                                                                                |                                                                       |        |
| `AddSection<iosmobiletable.addsection>`                                   | title As `String</api/data_types/string>` = ""                                                                                                                                                                                                                                                       |                                                                       |        |
|                                                                           | title As `String</api/data_types/string>` = ""                                                                                                                                                                                                                                                       | `Integer</api/data_types/integer>`                                    |        |
| `AddSectionAt<iosmobiletable.addsectionat>`                               | index As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                          |                                                                       |        |
|                                                                           | index As `Integer</api/data_types/integer>`, title As `String</api/data_types/string>`                                                                                                                                                                                                               |                                                                       |        |
| `ClearFocus<iosmobiletable.clearfocus>`                                   |                                                                                                                                                                                                                                                                                                      |                                                                       |        |
| `Constructor<iosmobiletable.constructor0>`                                | format As `Formats<iosmobiletable.formats>`                                                                                                                                                                                                                                                          |                                                                       |        |
| `Constraint<iosmobiletable.constraint>`                                   | name As `String</api/data_types/string>`                                                                                                                                                                                                                                                             | `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`                   |        |
| `ControlAt<iosmobiletable.controlat>`                                     | index As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                          | `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`         |        |
| `Controls<iosmobiletable.controls>`                                       |                                                                                                                                                                                                                                                                                                      | `Iterable</api/language/iterable>`                                    |        |
| `CreateCell<iosmobiletable.createcell>`                                   | value As `String</api/data_types/string>` = "", detail As `String</api/data_types/string>` = "", image As `Picture</api/graphics/picture>` = `Nil</api/language/nil>`, accessory As `AccessoryTypes<mobiletablecelldata.accessorytypes>` = `AccessoryTypes.None<mobiletablecelldata.accessorytypes>` | `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` |        |
| `CreateCustomCell<iosmobiletable.createcustomcell>`                       | controlClass As `Introspection.TypeInfo</api/language/introspection/typeinfo>`                                                                                                                                                                                                                       | `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` |        |
| `EndRefresh<iosmobiletable.endrefresh>`                                   |                                                                                                                                                                                                                                                                                                      |                                                                       |        |
| `Handle<iosmobiletable.handle>`                                           |                                                                                                                                                                                                                                                                                                      | `Ptr</api/data_types/additional_types/ptr>`                           |        |
| `Refresh<iosmobiletable.refresh>`                                         |                                                                                                                                                                                                                                                                                                      |                                                                       |        |
| `ReloadFromDataSource<iosmobiletable.reloadfromdatasource>`               |                                                                                                                                                                                                                                                                                                      |                                                                       |        |
| `ReloadRowFromDataSource<iosmobiletable.reloadrowfromdatasource>`         | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                                                                                                                                                                             |                                                                       |        |
| `ReloadSectionFromDataSource<iosmobiletable.reloadsectionfromdatasource>` | section As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                        |                                                                       |        |
| `RemoveAllRows<iosmobiletable.removeallrows>`                             |                                                                                                                                                                                                                                                                                                      |                                                                       |        |
| `RemoveConstraint<iosmobiletable.removeconstraint>`                       | constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`                                                                                                                                                                                                                                    |                                                                       |        |
|                                                                           | name As `String</api/data_types/string>`                                                                                                                                                                                                                                                             |                                                                       |        |
| `RemoveControl<iosmobiletable.removecontrol>`                             | child As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`                                                                                                                                                                                                                               |                                                                       |        |
| `RemoveRowAt<iosmobiletable.removerowat>`                                 | row As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                            |                                                                       |        |
|                                                                           | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                                                                                                                                                                             |                                                                       |        |
| `RemoveSectionAt<iosmobiletable.removesectionat>`                         | section As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                        |                                                                       |        |
| `RowCellData<iosmobiletable.rowcelldata>`                                 | row As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                            | `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` |        |
|                                                                           | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                                                                                                                                                                             | `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` |        |
| `RowCount<iosmobiletable.rowcount>`                                       |                                                                                                                                                                                                                                                                                                      | `Integer</api/data_types/integer>`                                    |        |
|                                                                           | section As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                        | `Integer</api/data_types/integer>`                                    |        |
| `ScrollToRow<iosmobiletable.scrolltorow>`                                 | row As `Integer</api/data_types/integer>`, animated As `Boolean</api/data_types/boolean>` = `True</api/language/true>`, position As `ScrollPositions<iosmobiletable.scrollpositions>` = `ScrollPositions.None<iosmobiletable.scrollpositions>`                                                       |                                                                       |        |
|                                                                           | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`, animated As `Boolean</api/data_types/boolean>` = `True</api/language/true>`, position As `ScrollPositions<iosmobiletable.scrollpositions>` = `ScrollPositions.None<iosmobiletable.scrollpositions>`        |                                                                       |        |
| `SearchControllerHandle<iosmobiletable.searchcontrollerhandle>`           |                                                                                                                                                                                                                                                                                                      | `Ptr</api/data_types/additional_types/ptr>`                           |        |
| `SectionTitleAt<iosmobiletable.sectiontitleat>`                           | section As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                        | `String</api/data_types/string>`                                      |        |
|                                                                           | section As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `String</api/data_types/string>`                                                                                                                                                                            |                                                                       |        |
| `SelectRow<iosmobiletable.selectrow>`                                     | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                                                                                                                                                                             |                                                                       |        |
| `SetFocus<iosmobiletable.setfocus>`                                       |                                                                                                                                                                                                                                                                                                      |                                                                       |        |

## Events

<div class="rst-class">

table-centered_column_3

</div>

| Name                                                                  | Parameters                                                                                                                                | Returns                                                       |
|-----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------|
| `AccessoryPressed<iosmobiletable.accessorypressed>`                   | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                  |                                                               |
| `ApplyActionsForRow<iosmobiletable.applyactionsforrow>`               | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                  | `iOSMobileTableRowAction()</api/ios/iosmobiletablerowaction>` |
| `ApplyLeadingActionsForRow<iosmobiletable.applyleadingactionsforrow>` | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                  | `iOSMobileTableRowAction()</api/ios/iosmobiletablerowaction>` |
| `ApplyRowEditingStyle<iosmobiletable.applyroweditingstyle>`           | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                  | `RowEditingStyles<iosmobiletable.roweditingstyles>`           |
| `Closing<iosmobiletable.closing>`                                     |                                                                                                                                           |                                                               |
| `Opening<iosmobiletable.opening>`                                     |                                                                                                                                           |                                                               |
| `Refreshed<iosmobiletable.refreshed>`                                 |                                                                                                                                           |                                                               |
| `RowActionSelected<iosmobiletable.rowactionselected>`                 | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`, actionTag As `Variant</api/data_types/variant>` |                                                               |
| `Scrolled<iosmobiletable.scrolled>`                                   | x As `Integer</api/data_types/integer>`, y As `Integer</api/data_types/integer>`                                                          |                                                               |
| `SearchChanged<iosmobiletable.searchchanged>`                         | value As `String</api/data_types/string>`                                                                                                 |                                                               |
| `SelectionChanged<iosmobiletable.selectionchanged>`                   | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                  |                                                               |

## Enumerations

<div id="iosmobiletable.formats">

<div class="rst-class">

forsearch

</div>

</div>

iOSMobileTable.Formats

### Formats

> Indicates the formatting of the table. Used by the Format property. You can set this value using the Format property in the Inspector. (Plain, Grouped, InsetGrouped)
>
> | Name         | Description                                                                                            |
> |--------------|--------------------------------------------------------------------------------------------------------|
> | Plain        | A plain table consists of just the rows and section headings. This is the default.                     |
> | Grouped      | A grouped table has the section headings displayed outside of the table in visually distinct sections. |
> | InsetGrouped | A grouped table where the grouped sections are inset with rounded corners.                             |

<div id="iosmobiletable.roweditingstyles">

<div class="rst-class">

forsearch

</div>

</div>

iOSMobileTable.RowEditingStyles

### RowEditingStyles

> The styles available for when a row is being edited. Set the style for specific rows in the RowEditingStyle event handler. (None, Delete, Insert)
>
> | Name   | Description                                                                                                             |
> |--------|-------------------------------------------------------------------------------------------------------------------------|
> | None   | The row will have no editing control shown.                                                                             |
> | Delete | The row will have the deletion editing style, indicated with a red minus sign.                                          |
> | Insert | The row will have the insertion editing style, indicated with a green plus sign. This is the default for editable rows. |

<div id="iosmobiletable.scrollpositions">

<div class="rst-class">

forsearch

</div>

</div>

iOSMobileTable.ScrollPositions

### ScrollPositions

Indicates the position of the table after scrolling to the section/row. Used by the ScrollToRow method. (None, Top, Middle, Bottom)

> | Name   | Description                                                                                                     |
> |--------|-----------------------------------------------------------------------------------------------------------------|
> | None   | Scrolls the row to be visible. No action is performed if the row is already fully visible. This is the default. |
> | Top    | Scrolls table so that the row is displayed at the top of the table.                                             |
> | Middle | Scrolls table so that the row is displayed in the middle of the table.                                          |
> | Bottom | Scrolls table so that the row is displayed at the bottom of the table.                                          |

## Property descriptions

<div id="iosmobiletable.accessibilityhint">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AccessibilityHint

**AccessibilityHint** As `String</api/data_types/string>`

> The accessibility hint is a longer description that is read aloud when VoiceOver is enabled.
>
> ``` xojo
> Me.AccessibilityHint = "Click to calculate the value and display the next screen."
> ```

<div id="iosmobiletable.accessibilitylabel">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AccessibilityLabel

**AccessibilityLabel** As `String</api/data_types/string>`

> The accessibility label of of a control is a short name that is read aloud when VoiceOver is enabled.
>
> ``` xojo
> Me.AccessibilityLabel = "Calculate the value."
> ```

<div id="iosmobiletable.allowrefresh">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AllowRefresh

**AllowRefresh** As `Boolean</api/data_types/boolean>`

> Enables iOS pull-to-refresh feature when `True</api/language/true>`. When the user initiates the pull-to-refresh action, the `Refreshed<iosmobiletable.refreshed>` event is called. When done refreshing data, call the `EndRefresh<iosmobiletable.endrefresh>` method.

<div id="iosmobiletable.allowsearch">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AllowSearch

**AllowSearch** As `Boolean</api/data_types/boolean>`

> Adds a search field to the table. Pull down on the table at runtime to display the search field.

<div id="iosmobiletable.backgroundcolor">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.BackgroundColor

**BackgroundColor** As `ColorGroup</api/graphics/colorgroup>`

> The background color for the <span class="title-ref">iOSMobileTable</span>.
>
> This code sets the value of the BackgroundColor property:
>
> ``` xojo
> Me.BackgroundColor = Color.LightGray
> ```

<div id="iosmobiletable.controlcount">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ControlCount

**ControlCount** As `Integer</api/data_types/integer>`

> The number of child controls in the control.

<div id="iosmobiletable.datasource">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.DataSource

**DataSource** As `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>`

> The data to display in the table.
>
> For data sets that are large, a data source allows you to efficiently provide rows without the memory cost of having an `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` in memory at all times for every single one of them.
>
> DataSource is a weak reference so you need to make sure your data source instance does not go out of scope. The easiest way to ensure this is to make it a property of your `MobileScreen</api/user_interface/mobile/mobilescreen>`.

<div id="iosmobiletable.editingenabled">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.EditingEnabled

**EditingEnabled** As `Boolean</api/data_types/boolean>`

> Determines if the table is currently being edited by the user. Animations are performed when this value is changed.

<div id="iosmobiletable.enabled">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Enabled

**Enabled** As `Boolean</api/data_types/boolean>`

> Indicates whether the control is enabled or disabled.
>
> Disable the button:
>
> ``` xojo
> Button1.Enabled = False
> ```

<div id="iosmobiletable.estimatedrowheight">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.EstimatedRowHeight

**EstimatedRowHeight** As `Integer</api/data_types/integer>`

> For use with custom table cells, this allows you to specify an estimated row height to help with the drawing of the rows and determine what needs scrolling.
>
> With custom table cells, the table doesn't know in advance what the cells will be or how high they'll be. Using the estimated row height allows the table to determine how high its content is (and how much scrolling needs to happen) without instantiating every single cell that the table contains.
>
> For non-custom cells, you should leave this as 0 and the framework will do the right thing. When you set the estimated row height, it's important to get it somewhat accurate (e.g. being 10% off probably won't matter, being 100% off causes bugs).

<div id="iosmobiletable.format">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Format

**Format** As `Formats<iosmobiletable.formats>`

> The format type for the table. This can only be specified at design-time in the Inspector. The default is `iOSMobileTable<iosmobiletable.formats>`.Plain.
>
> This property is read-only.

<div id="iosmobiletable.height">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Height

**Height** As `Integer</api/data_types/integer>`

> The height of the control.
>
> This property is read-only.

<div id="iosmobiletable.left">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Left

**Left** As `Integer</api/data_types/integer>`

> The left position of the control.
>
> This property is read-only.

<div id="iosmobiletable.name">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Name

**Name** As `String</api/data_types/string>`

> The name of the control.
>
> This property is read-only.

<div id="iosmobiletable.parent">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Parent

**Parent** As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`

> The parent (sometimes called a "Super") class of the control.
>
> This property is read-only.

<div id="iosmobiletable.sectionbackgroundcolor">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SectionBackgroundColor

**SectionBackgroundColor** As `ColorGroup</api/graphics/colorgroup>`

> The background color for sections of the <span class="title-ref">iOSMobileTable</span>.
>
> This code sets the value of the SectionBackgroundColor property:
>
> ``` xojo
> Me.SectionBackgroundColor = Color.Yellow
> ```

<div id="iosmobiletable.sectioncount">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SectionCount

**SectionCount** As `Integer</api/data_types/integer>`

> The count of sections in the table.
>
> This property is read-only.
>
> Get the number of sections in the table:
>
> ``` xojo
> Var sections As Integer = Table1.SectionCount
> ```

<div id="iosmobiletable.sectiontextcolor">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SectionTextColor

**SectionTextColor** As `ColorGroup</api/graphics/colorgroup>`

> The text color for sections of the <span class="title-ref">iOSMobileTable</span>.
>
> This code sets the value of the SectionTextColor property:
>
> ``` xojo
> Me.SectionTextColor = Color.Red
> ```

<div id="iosmobiletable.selectedrow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SelectedRow

**SelectedRow** As `Pair</api/language/pair>`

> Returns the selected section and row via a `Pair</api/language/pair>`.
>
> This property is read-only.
>
> ``` xojo
> Var selection As Pair = Table1.SelectedRow
> Var section, row As Integer
> section = selection.Left
> row = selection.Right
> ```

<div id="iosmobiletable.selectedrowcolor">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SelectedRowColor

**SelectedRowColor** As `ColorGroup</api/graphics/colorgroup>`

> The color used to draw the background of a row when selected.
>
> From the `Opening<iosmobiletable.opening>` event, set the SelectedRowColor property to blue:
>
> ``` xojo
> Me.SelectedRowColor = Color.Blue
> ```

<div id="iosmobiletable.tintcolor">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.TintColor

**TintColor** As `ColorGroup</api/graphics/colorgroup>`

> Changes a control's tint color.
>
> On iOS, the following controls support TintColor:
>
> | Enum        | Description                                                                  |
> |-------------|------------------------------------------------------------------------------|
> | PopupMenu   | The background color will be drawn in the TintColor.                         |
> | ProgressBar | The area indicating the value of the control will be drawn in the TintColor. |
> | Slider      | The area indicating the value of the control will be drawn in the TintColor. |
> | Switch      | The background of the color will be drawn in the TintColor.                  |
> | TextArea    | The cursor and text highlight color will be drawn in the TintColor.          |
> | TextField   | The cursor and text highlight color will be drawn in the TintColor.          |

<div id="iosmobiletable.top">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Top

**Top** As `Integer</api/data_types/integer>`

> The top position of the control.
>
> This property is read-only.

<div id="iosmobiletable.visible">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Visible

**Visible** As `Boolean</api/data_types/boolean>`

> Indicates whether the control is visible.
>
> Make a button invisible:
>
> ``` xojo
> Button1.Visible = False
> ```

<div id="iosmobiletable.width">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Width

**Width** As `Integer</api/data_types/integer>`

> The width of the control.
>
> This property is read-only.

## Method descriptions

<div id="iosmobiletable.addconstraint">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddConstraint

**AddConstraint**(constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`, name As `String</api/data_types/string>` = "")

> Adds a *constraint* to the control. The optional *name* parameter can be used to `remove a constraint<mobileuicontrol.removeconstraint>` that was added via code.
>
> This *constraint* is used by child controls that have been added to this control.

<div id="iosmobiletable.addcontrol">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddControl

**AddControl**(child As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`, isBeingAdded As `Boolean</api/data_types/boolean>` = `False</api/language/false>`)

> Adds a *child* control to the control. When the value of *isBeingAdded* is `True</api/language/true>`, the Opening event is triggered for the child control being added.

<div id="iosmobiletable.addrow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddRow

**AddRow**(section As `Integer</api/data_types/integer>`, value As `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>`)

> Adds a new row with the value fetched from the DataSource. This method only works when the table has a DataSource specified.

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

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddRow

**AddRow**(section As `Integer</api/data_types/integer>`, value As `String</api/data_types/string>`)

> Adds a new row with the *value* passed.

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

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddRow

**AddRow**(value As `String</api/data_types/string>`)

> Adds a new row with the *value* passed.
>
> If you are adding many rows, you should instead use `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>` for better performance and reduced memory usage.
>
> The following exceptions can be raised:
>
> | Exception                                                                      | Description                                                                                          |
> |--------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|
> | `OutOfBoundsException</api/exceptions/outofboundsexception>`                   | When the section does not exist. At least one section must be added to the table before adding rows. |
> | `UnsupportedOperationException</api/exceptions/unsupportedoperationexception>` | When the table has a DataSource specified.                                                           |
>
> Adds five rows to a table:
>
> ``` xojo
> For i As Integer = 0 To 4
>   Table1.AddRow(0, "Row " + i.ToString)
> Next
> ```
>
> Adds five rows to a table using a cell:
>
> ``` xojo
> Var cell As MobileTableCellData
>
> For i As Integer = 0 To 4
>   cell = Table1.CreateCell("Row " + i.ToString)
>   Table1.AddRow(0, cell)
> Next
> ```

<div id="iosmobiletable.addrowat">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddRowAt

**AddRowAt**(section As `Integer</api/data_types/integer>`, index As `Integer</api/data_types/integer>`)

> Adds a new row for the *section* at the row *index*.

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

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddRowAt

**AddRowAt**(section As `Integer</api/data_types/integer>`, index As `Integer</api/data_types/integer>`, value As `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>`)

> When you insert the row using this version of the method, its value is fetched from the DataSource. This method only works when the table has a DataSource specified.

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

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddRowAt

**AddRowAt**(section As `Integer</api/data_types/integer>`, index As `Integer</api/data_types/integer>`, value As `String</api/data_types/string>`)

> Adds a new row with the *value* for the *section* at the row *index*.
>
> Adds a row at the beginning of the table, retrieving its value from the specified DataSource:
>
> ``` xojo
> Table1.AddRowAt(0, 0)
> ```
>
> Inserts a row in the first section:
>
> ``` xojo
> Var cell As New MobileTableCellData
> cell.Text = "Hello"
> Table1.AddRowAt(0, 0, cell)
> ```
>
> Add a row in the first position of the Table:
>
> ``` xojo
> Table1.AddRowAt(0, 0, "First Row")
> ```

<div id="iosmobiletable.addsection">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddSection

**AddSection**(title As `String</api/data_types/string>` = "")

> Adds a section, with the optional *title*, to the table returning the index number for the new section.

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

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddSection

**AddSection**(title As `String</api/data_types/string>` = "") As `Integer</api/data_types/integer>`

> Adds a section, with the optional *title*, to the table returning the index number for the new section.
>
> For a Plain table format, section headings appear in the table itself. Only non-blank section titles appear. If you add a section with a blank title, you cannot change the title later.
>
> For a Group table format, the sections appear outside of the table.
>
> <div class="warning">
>
> <div class="title">
>
> Warning
>
> </div>
>
> If an `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>` is assigned, sections cannot be added because the `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>` is responsible for that. If you try to add a section when a DataSource has been assigned, an `UnsupportedOperationException</api/exceptions/unsupportedoperationexception>` will be raised.
>
> </div>
>
> Add a section called "Tasks":
>
> ``` xojo
> Table1.AddSection("Tasks")
> ```
>
> You may want to add a section and save the returned section number so you can use it to subsequently add rows:
>
> ``` xojo
> Var newSection As Integer = Table1.AddSection("Tasks")
> Table1.AddRow(newSection, "Task 1")
> Table1.AddRow(newSection, "Task 2")
> ```

<div id="iosmobiletable.addsectionat">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddSectionAt

**AddSectionAt**(index As `Integer</api/data_types/integer>`)

> Adds the section title at the specified *index*.

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

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AddSectionAt

**AddSectionAt**(index As `Integer</api/data_types/integer>`, title As `String</api/data_types/string>`)

> Adds the section *title* at the specified *index*.
>
> When you insert a section using this method, its value is fetched from the DataSource. This method only works when the table has a DataSource specified. It does nothing when the table does not have a DataSource.
>
> Adds a row in the first position of the table, retrieving its value from the specified DataSource:
>
> ``` xojo
> Table1.AddRowAt(0)
> ```
>
> Inserts a section at the top of the table:
>
> ``` xojo
> Table1.AddSectionAt(0, "First!")
> ```

<div id="iosmobiletable.clearfocus">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ClearFocus

**ClearFocus**

> Removes the focus from the control.
>
> ``` xojo
> TextField1.ClearFocus
> ```

<div id="iosmobiletable.constraint">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Constraint

**Constraint**(name As `String</api/data_types/string>`) As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`

> Gets a reference to a named constraint so that you can modify its settings in code.
>
> Change an existing (and named) constraint of a control on the Screen:
>
> ``` xojo
> ' "TAWidth" is a width constraint for a TextField that has been given
> ' a name in the auto-layout Inspector properties.
> Var c As iOSLayoutConstraint = Self.Constraint("TAWidth")
> c.Offset = 200
> ```

<div id="iosmobiletable.constructor0">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Constructor

**Constructor**(format As `Formats<iosmobiletable.formats>`)

> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> `Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.
>
> </div>
>
> Creates a table with the specified *format*.

<div id="iosmobiletable.controlat">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ControlAt

**ControlAt**(index As `Integer</api/data_types/integer>`) As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`

> Gets the child control at the specified *index*.

<div id="iosmobiletable.controls">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Controls

**Controls** As `Iterable</api/language/iterable>`

> Allows you to iterate through all the controls that have been added to this control.

<div id="iosmobiletable.createcell">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.CreateCell

**CreateCell**(value As `String</api/data_types/string>` = "", detail As `String</api/data_types/string>` = "", image As `Picture</api/graphics/picture>` = `Nil</api/language/nil>`, accessory As `AccessoryTypes<mobiletablecelldata.accessorytypes>` = `AccessoryTypes.None<mobiletablecelldata.accessorytypes>`) As `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>`

> Creates a standard table cell, optionally pre-populating its properties with the specified arguments.
>
> Use this method in place of the `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` Constructor that was available in versions prior to 2016r2.
>
> Create a new cell and add it to a table:
>
> ``` xojo
> Var cell As MobileTableCellData
> cell = Table1.CreateCell("Red Sox", "MLB", redSoxLogo, MobileTableCellData.AccessoryTypes.Detail)
> Table1.AddRow(0, cell)
> ```

<div id="iosmobiletable.createcustomcell">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.CreateCustomCell

**CreateCustomCell**(controlClass As `Introspection.TypeInfo</api/language/introspection/typeinfo>`) As `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>`

> Creates or reuses a table cell that uses a custom control that is based on `MobileTableCustomCell</api/user_interface/mobile/mobiletablecustomcell>`. If there is no view to reuse, the cell's control will be instantiated from the passed type information.
>
> This is also usable by applications that use AddRow instead of data sources with the caveat that no reuse is possible. This is not recommended for performance reasons and users needing more than a screen's worth of rows should use a data source. If the number of rows with custom controls exceeds a certain threshold the framework will log a message in the debugger to advise users of the situation.
>
> <div class="warning">
>
> <div class="title">
>
> Warning
>
> </div>
>
> A `NilObjectException</api/exceptions/nilobjectexception>` will be raised if the *controlClass* is `Nil</api/language/nil>`.
>
> </div>
>
> <div class="warning">
>
> <div class="title">
>
> Warning
>
> </div>
>
> An `InvalidArgumentException</api/exceptions/invalidargumentexception>` will be raised if the *controlClass* is not referring to a class, the *controlClass* refers to a class that has no default constructor or if the *controlClass* does not inherit from `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`.
>
> </div>
>
> *MyTableCell* is a subclass of `MobileTableCustomCell</api/user_interface/mobile/mobiletablecustomcell>` that contains several controls, including a label called *NameLabel*. This code adds *MyTableCell* as a custom cell in the table and is in the RowData method of class that implements `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>`:
>
> ``` xojo
> Var cell As MobileTableCellData = table.CreateCustomCell(GetTypeInfo(MyTableCell))
> Var container As MyTableCell = MyTableCell(cell.Control)
> container.NameLabel.Text = "Some Text"
> Return cell
> ```
>
> This code directly adds *MyTableCell* as a custom cell to a table using the AddRow method:
>
> ``` xojo
> Var cell As MobileTableCellData = Table1.CreateCustomCell(GetTypeInfo(MyTableCell))
> Var container As MyTableCell = MyTableCell(cell.Control)
> container.NameLabel.Text = "Some Text"
> Table1.AddRow(0, cell)
> ```

<div id="iosmobiletable.endrefresh">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.EndRefresh

**EndRefresh**

> Call this method when you have finished updating data (in the `Refreshed<iosmobiletable.refreshed>` event) to close the pull-to-refresh UI.

<div id="iosmobiletable.handle">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Handle

**Handle** As `Ptr</api/data_types/additional_types/ptr>`

> The handle to the underlying native OS control.

<div id="iosmobiletable.refresh">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Refresh

**Refresh**

> Marks the control so that it will be redrawn during the next event loop.
>
> Call Refresh to force a Canvas to redraw itself:
>
> ``` xojo
> Canvas1.Refresh
> ```

<div id="iosmobiletable.reloadfromdatasource">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ReloadFromDataSource

**ReloadFromDataSource**

> Reloads all the table data from the DataSource.
>
> It is faster to only reload the specific data that need to be refreshed, so consider using `ReloadSectionFromDataSource<iosmobiletable.reloadsectionfromdatasource>` or `ReloadRowFromDataSource<iosmobiletable.reloadrowfromdatasource>` instead.

<div id="iosmobiletable.reloadrowfromdatasource">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ReloadRowFromDataSource

**ReloadRowFromDataSource**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`)

> Reloads the table data for the *section* and *row*.
>
> Use this method to reload a single cell row after changes have been made to its data (either from a DataSource or by changing the RowData).
>
> In the `SelectionChanged<iosmobiletable.selectionchanged>` event handler, reload the cell row after changing its AccessoryType:
>
> ``` xojo
> Var cell As MobileTableCellData = Me.RowData(section, row)
> cell.AccessoryType = MobileTableCellData.AccessoryTypes.Checkmark
> Me.ReloadRowFromDataSource(section, row)
> ```

<div id="iosmobiletable.reloadsectionfromdatasource">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ReloadSectionFromDataSource

**ReloadSectionFromDataSource**(section As `Integer</api/data_types/integer>`)

> Reloads the table data for the *section*.
>
> Use this method to reload a section after changes have been made to its data (either from a DataSource or by changing the RowData).
>
> Reload all the data in section from the related DataSource:
>
> ``` xojo
> Table1.ReloadSectionFromDataSource(0)
> ```

<div id="iosmobiletable.removeallrows">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.RemoveAllRows

**RemoveAllRows**

> Removes all rows from the table.
>
> Remove all rows:
>
> ``` xojo
> Table1.RemoveAllRows
> ```

<div id="iosmobiletable.removeconstraint">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.RemoveConstraint

**RemoveConstraint**(constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`)

> Removes a *constraint* from the control.

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

**RemoveConstraint**(name As `String</api/data_types/string>`)

> Removes the constraint with the *name* passed from the `Screen</api/user_interface/mobile/mobilescreen>`.

<div id="iosmobiletable.removecontrol">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.RemoveControl

**RemoveControl**(child As `MobileUIControl</api/user_interface/mobile/mobileuicontrol>`)

> Removes the control from the control.

<div id="iosmobiletable.removerowat">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.RemoveRowAt

**RemoveRowAt**(row As `Integer</api/data_types/integer>`)

> Removes the *row* from the table.
>
> Removes row 2:
>
> ``` xojo
> Table1.RemoveRowAt(2)
> ```

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

**RemoveRowAt**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`)

> Removes the *row* from the *section*.
>
> Removes row 4 from section 0:
>
> ``` xojo
> Table1.RemoveRowAt(0, 4)
> ```

<div id="iosmobiletable.removesectionat">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.RemoveSectionAt

**RemoveSectionAt**(section As `Integer</api/data_types/integer>`)

> Removes the *section* from the table (and all its rows).
>
> Remove section 0 and all the rows it contains:
>
> ``` xojo
> Table1.RemoveSectionAt(0)
> ```

<div id="iosmobiletable.rowcelldata">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.RowCellData

**RowCellData**(row As `Integer</api/data_types/integer>`) As `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>`

> Returns the cell data for the *row*.

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

<div class="rst-class">

forsearch

</div>

iOSMobileTable.RowCellData

**RowCellData**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`) As `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>`

> Returns the cell data for the *section* and *row*.
>
> You can use this method to get at the cell data to change its contents. After changing the contents, call ReloadRowFromDataSource to display the new information.
>
> <div class="warning">
>
> <div class="title">
>
> Warning
>
> </div>
>
> If the section and/or row does not exist, an OutOfBoundsException will be raised.
>
> </div>
>
> Get all the cell data for the first row in the table and change its text:
>
> ``` xojo
> Var cell As MobileTableCellData
> cell = Table1.RowCellData(0, 0)
> cell.Text = "Changed"
> Table1.ReloadRowFromDataSource(0, 0)
> ```

<div id="iosmobiletable.rowcount">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.RowCount

**RowCount** As `Integer</api/data_types/integer>`

> The count of rows.
>
> Get the counts of rows in Table1:
>
> ``` xojo
> Var rowCount As Integer
> rowCount = Table1.RowCount
> ```

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

**RowCount**(section As `Integer</api/data_types/integer>`) As `Integer</api/data_types/integer>`

> The count of rows in a *section*.
>
> Get the counts of rows in section 0:
>
> ``` xojo
> Var rowCount As Integer
> rowCount = Table1.RowCount(0)
> ```

<div id="iosmobiletable.scrolltorow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ScrollToRow

**ScrollToRow**(row As `Integer</api/data_types/integer>`, animated As `Boolean</api/data_types/boolean>` = `True</api/language/true>`, position As `ScrollPositions<iosmobiletable.scrollpositions>` = `ScrollPositions.None<iosmobiletable.scrollpositions>`)

> Scrolls the table so that the requested *row* is visible. The row's position when scrolling is finished is controlled by the position parameter.

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

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ScrollToRow

**ScrollToRow**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`, animated As `Boolean</api/data_types/boolean>` = `True</api/language/true>`, position As `ScrollPositions<iosmobiletable.scrollpositions>` = `ScrollPositions.None<iosmobiletable.scrollpositions>`)

> Scrolls the table so that the requested *row* is visible. The row's position when scrolling is finished is controlled by the position parameter.
>
> Scroll to section 2, row 10:
>
> ``` xojo
> myTable.ScrollToRow(2, 10)
> myTable.ScrollToRow(2, 10, True, Table.ScrollPositions.Middle)
> ```

<div id="iosmobiletable.searchcontrollerhandle">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SearchControllerHandle

**SearchControllerHandle** As `Ptr</api/data_types/additional_types/ptr>`

> Returns a Ptr to the search controller for use with Declares.

<div id="iosmobiletable.sectiontitleat">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SectionTitleAt

**SectionTitleAt**(section As `Integer</api/data_types/integer>`) As `String</api/data_types/string>`

> Gets the title for the *section*.

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

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SectionTitleAt

**SectionTitleAt**(section As `Integer</api/data_types/integer>`, `Assigns</api/language/assigns>` value As `String</api/data_types/string>`)

> Sets the title for the *section*.
>
> You cannot change the title section that was originally given a blank title.
>
> The following exception can be raised:
>
> | Exception                                                    | Description                                                                                                           |
> |--------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|
> | `OutOfBoundsException</api/exceptions/outofboundsexception>` | When the section does not exist. At least one section must be added to the table before getting or setting its title. |
>
> Change the first section title:
>
> ``` xojo
> Table1.SectionTitleAt(0) = "New Title"
> ```
>
> Get the title of the 2nd section:
>
> ``` xojo
> Var title As String = Table1.SectionTitleAt(1)
> ```

<div id="iosmobiletable.selectrow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SelectRow

**SelectRow**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`)

> Selects the *row* in *section* passed.
>
> Select the first row in the first section:
>
> ``` xojo
> Table1.SelectRow(0,0)
> ```

<div id="iosmobiletable.setfocus">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SetFocus

**SetFocus**

> Sets the focus to the control.
>
> ``` xojo
> TextField1.SetFocus
> ```

## Event descriptions

<div id="iosmobiletable.accessorypressed">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.AccessoryPressed

**AccessoryPressed**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`)

> Called when the accessory (currently only Detail) for a *row* is tapped.
>
> Get the row's cell data when the accessory it tapped:
>
> ``` xojo
> Var cell As MobileTableCellData = Me.RowCellData(section, row)
> ```

<div id="iosmobiletable.applyactionsforrow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ApplyActionsForRow

**ApplyActionsForRow**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`) As `iOSMobileTableRowAction()</api/ios/iosmobiletablerowaction>`

> Use this event to specify the actions that can be performed for the given *section* and *row* when the user swipes from right to left.
>
> Returns an array of `iOSMobileTableRowActions</api/ios/iosmobiletablerowaction>` that will be available for the *section* and *row*.
>
> Multiple actions are supported. Add each action to the array that is returned from the event.
>
> Row actions only work for tables that use iOSMobileTableDataSourceEditing and where its RowIsEditable method returns `True</api/language/true>`.
>
> Adds two actions to every row in the table:
>
> ``` xojo
> Var actions(1) As iOSMobileTableRowAction
> ' Create the More button
> actions(0) = New iOSMobileTableRowAction(iOSMobileTableRowAction.Styles.Normal, "More...", "More")
> ' Create the Delete button
> actions(1) = New iOSMobileTableRowAction(iOSMobileTableRowAction.Styles.Destructive, "Delete", "Delete")
> Return actions
> ```

<div id="iosmobiletable.applyleadingactionsforrow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ApplyLeadingActionsForRow

**ApplyLeadingActionsForRow**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`) As `iOSMobileTableRowAction()</api/ios/iosmobiletablerowaction>`

> Use this event to specify the actions that can be performed for the given *section* and *row* when the user swipes from left to right.
>
> Returns an array of `iOSMobileTableRowActions</api/ios/iosmobiletablerowaction>` that will be available for the *section* and *row*.
>
> Multiple actions are supported. Add each action to the array that is returned from the event.
>
> Row actions only work for tables that use iOSMobileTableDataSourceEditing and where its RowIsEditable method returns `True</api/language/true>`.
>
> Adds two actions to every row in the table:
>
> ``` xojo
> Var actions(1) As iOSMobileTableRowAction
> ' Create the More button
> actions(0) = New iOSMobileTableRowAction(iOSMobileTableRowAction.Styles.Normal, "More...", "More")
> ' Create the Delete button
> actions(1) = New iOSMobileTableRowAction(iOSMobileTableRowAction.Styles.Destructive, "Delete", "Delete")
> Return actions
> ```

<div id="iosmobiletable.applyroweditingstyle">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.ApplyRowEditingStyle

**ApplyRowEditingStyle**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`) As `RowEditingStyles<iosmobiletable.roweditingstyles>`

> Allows the table to indicate what the editing style should be for a *row*.
>
> This is invoked if all of the following are met:
>
> - The table is being edited (IsEditing = True).
> - The table is using a custom data source with iOSMobileTableDataSource.
> - The custom data source implements iOSMobileTableDataSourceEditing interface.
> - The custom data source returns True from RowIsEditable for the section and row.
>
> If this event is not implemented, the default value is `RowEditingStyles.Delete`.

<div id="iosmobiletable.closing">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Closing

**Closing**

> Called when the control's layout is closing.

<div id="iosmobiletable.opening">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Opening

**Opening**

> Called when the control's layout is opening.
>
> This is where you typically put initialization code.
>
> This example in the Opening event of a label sets its text to "Hello":
>
> ``` xojo
> Me.Text = "Hello"
> ```

<div id="iosmobiletable.refreshed">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Refreshed

**Refreshed**

> Called when `AllowRefresh<iosmobiletable.allowrefresh>` is `True</api/language/true>` and the user has "pulled" to refresh the table.
>
> Do not call your code to refresh the data here. Call the `EndRefresh<iosmobiletable.endrefresh>` method when finished to close the pull-to-refresh UI.

<div id="iosmobiletable.rowactionselected">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.RowActionSelected

**RowActionSelected**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`, actionTag As `Variant</api/data_types/variant>`)

> A *row* action has been selected by the user.
>
> Use the *actionTag* parameter to identify the action that was used.
>
> Row actions only work for tables that use `iOSMobileTableDataSourceEditing</api/ios/iosmobiletabledatasourceediting>` and where its `AllowRowEditing<iosmobiletabledatasourceediting.allowrowediting>` method returns `True</api/language/true>`.
>
> Check the actionTag parameter:
>
> ``` xojo
> Select Case actionTag
> Case "More"
>   ' ... show more info
> Case "Delete"
>   ' ... delete something
> End Select
> ```

<div id="iosmobiletable.scrolled">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.Scrolled

**Scrolled**(x As `Integer</api/data_types/integer>`, y As `Integer</api/data_types/integer>`)

> The <span class="title-ref">iOSMobileTable</span> has been scrolled to *x* and *y*.

<div id="iosmobiletable.searchchanged">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SearchChanged

**SearchChanged**(value As `String</api/data_types/string>`)

> The *value* of the table's search field was changed.

<div id="iosmobiletable.selectionchanged">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSMobileTable.SelectionChanged

**SelectionChanged**(section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`)

> A *row* has been selected.
>
> Get the selected row:
>
> ``` xojo
> Var selectedCell As MobileTableCellData = Me.RowCellData(section, row)
> ```

## Notes

An <span class="title-ref">iOSMobileTable</span> has only a single column of cells so by default it can only show one column of data. Use `MobileTableCustomCell</api/user_interface/mobile/mobiletablecustomcell>` to create your own cells with your own cell layout. This allows you to have a cell with its own controls or even multiple columns.

A table can have data added to it in one of two ways: manually or from a data source. Some methods only work with data that was added manually, some methods only work with data added using a data source. If you are adding many rows (100+), you should instead use an `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>` for better performance and reduced memory usage.

A table must have at least one section (0-based). If there is only one section, then the section title does not appear in the table.

## Sample code

Add five rows to a table:

``` xojo
' Simple usage
For i As Integer = 0 To 4
  Table1.AddRow(0, "Row " + i.ToString)
Next
```

## Compatibility

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

<div id="iosmobiletable/see_also">

<div class="seealso">

`MobileUIControl</api/user_interface/mobile/mobileuicontrol>` parent class; `MobileTableCustomCell</api/user_interface/mobile/mobiletablecustomcell>` control; `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>`, `iOSMobileTableRowAction</api/ios/iosmobiletablerowaction>` classes; `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>`, `iOSMobileTableDataSourceEditing</api/ios/iosmobiletabledatasourceediting>`, `iOSMobileTableDataSourceReordering</api/ios/iosmobiletabledatasourcereordering>`, `iOSMobileTableDataSourceIndex</api/ios/iosmobiletabledatasourceindex>` interfaces

</div>

</div>
