<div class="meta" robots="noindex">

</div>

Class

# iOSTable

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

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `iOSMobileTable</api/ios/iosmobiletable>` as a replacement.

</div>

## Description

An <span class="title-ref">iOSTable</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<iostable.accessibilityhint>`   | `Text</api/deprecated/text>`                             |           |        |
| `AccessibilityLabel<iostable.accessibilitylabel>` | `Text</api/deprecated/text>`                             |           |        |
| `AllowRefresh<iostable.allowrefresh>`             | `Boolean</api/data_types/boolean>`                       |           |        |
| `DataSource<iostable.datasource>`                 | `iOSTableDataSource</api/deprecated/iostabledatasource>` |           |        |
| `EditingEnabled<iostable.editingenabled>`         | `Boolean</api/data_types/boolean>`                       |           |        |
| `EstimatedRowHeight<iostable.estimatedrowheight>` | `Integer</api/data_types/integer>`                       |           |        |
| `Format<iostable.format>`                         | `Formats<iostable.formats>`                              | ✓         |        |
| `Height<iostable.height>`                         | `Double</api/data_types/double>`                         | ✓         |        |
| `Left<iostable.left>`                             | `Double</api/data_types/double>`                         | ✓         |        |
| `Name<iostable.name>`                             | `Text</api/deprecated/text>`                             | ✓         |        |
| `Parent<iostable.parent>`                         | `iOSControl</api/deprecated/ioscontrol>`                 | ✓         |        |
| `SectionCount<iostable.sectioncount>`             | `Integer</api/data_types/integer>`                       | ✓         |        |
| `Top<iostable.top>`                               | `Double</api/data_types/double>`                         | ✓         |        |
| `Visible<iostable.visible>`                       | `Boolean</api/data_types/boolean>`                       |           |        |
| `Width<iostable.width>`                           | `Double</api/data_types/double>`                         | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                | Parameters                                                                                                                                                                                                                                                                                                   | Returns                                                               | Shared |
|-----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|--------|
| `AddConstraint<iostable.addconstraint>`             | constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`                                                                                                                                                                                                                                            |                                                                       |        |
| `AddControl<iostable.addcontrol>`                   | child As `MobileControl</api/user_interface/mobile/mobilecontrol>`                                                                                                                                                                                                                                           |                                                                       |        |
| `Control<iostable.control>`                         | index As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                                  | `MobileControl</api/user_interface/mobile/mobilecontrol>`             |        |
| `ControlCount<iostable.controlcount>`               |                                                                                                                                                                                                                                                                                                              | `Integer</api/data_types/integer>`                                    |        |
| `CreateCell<iostable.createcell>`                   | text 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 `iOSTableCellData.AccessoryTypes<iostablecelldata.accessorytypes>` = `iOSTableCellData</api/deprecated/iostablecelldata>` | `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` |        |
| `CreateCustomCell<iostable.createcustomcell>`       | controlClass As `Introspection</api/language/introspection/introspection>`                                                                                                                                                                                                                                   | `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` |        |
| `EndRefresh<iostable.endrefresh>`                   |                                                                                                                                                                                                                                                                                                              |                                                                       |        |
| `Handle<iostable.handle>`                           |                                                                                                                                                                                                                                                                                                              | `Ptr</api/data_types/additional_types/ptr>`                           |        |
| `InsertRow<iostable.insertrow>`                     | 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>`, rowText As `String</api/data_types/string>`                                                                                                                                                                      |                                                                       |        |
| `Invalidate<iostable.invalidate>`                   |                                                                                                                                                                                                                                                                                                              |                                                                       |        |
| `ReloadData<iostable.reloaddata>`                   |                                                                                                                                                                                                                                                                                                              |                                                                       |        |
| `ReloadDataInSection<iostable.reloaddatainsection>` | section As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                                |                                                                       |        |
| `ReloadRow<iostable.reloadrow>`                     | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                                                                                                                                                                                     |                                                                       |        |
| `RemoveAll<iostable.removeall>`                     |                                                                                                                                                                                                                                                                                                              |                                                                       |        |
| `RemoveConstraint<iostable.removeconstraint>`       | constraint As `iOSLayoutConstraint</api/ios/ioslayoutconstraint>`                                                                                                                                                                                                                                            |                                                                       |        |
| `RemoveControl<iostable.removecontrol>`             | child As `MobileControl</api/user_interface/mobile/mobilecontrol>`                                                                                                                                                                                                                                           |                                                                       |        |
| `RemoveRow<iostable.removerow>`                     | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                                                                                                                                                                                     |                                                                       |        |
| `RemoveSection<iostable.removesection>`             | section As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                                |                                                                       |        |
| `RowCount<iostable.rowcount>`                       | section As `Integer</api/data_types/integer>`                                                                                                                                                                                                                                                                | `Integer</api/data_types/integer>`                                    |        |
| `RowData<iostable.rowdata>`                         | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                                                                                                                                                                                     | `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` |        |
| `ScrollToRow<iostable.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 iOSTable = ScrollPositions                                                                                                |                                                                       |        |
| `SetTintColor<iostable.settintcolor>`               | value As `Color</api/data_types/color>`                                                                                                                                                                                                                                                                      |                                                                       |        |

## Events

<div class="rst-class">

table-centered_column_4

</div>

| Name                                        | Parameters                                                                                                                                | Returns |
|---------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|---------|
| `AccessoryAction<iostable.accessoryaction>` | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                  |         |
| `Action<iostable.action>`                   | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                  |         |
| `ActionsForRow<iostable.actionsforrow>`     | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                  |         |
| `Close<iostable.close>`                     |                                                                                                                                           |         |
| `Open<iostable.open>`                       |                                                                                                                                           |         |
| `Refreshed<iostable.refreshed>`             |                                                                                                                                           |         |
| `RowAction<iostable.rowaction>`             | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`, actionTag As `Variant</api/data_types/variant>` |         |
| `RowEditingStyle<iostable.roweditingstyle>` | section As `Integer</api/data_types/integer>`, row As `Integer</api/data_types/integer>`                                                  |         |

## Enumerations

<div id="iostable.formats">

<div class="rst-class">

forsearch

</div>

</div>

iOSTable.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)

| Enum    | 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. |

<div id="iostable.roweditingstyles">

<div class="rst-class">

forsearch

</div>

</div>

iOSTable.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)

| Enum   | 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="/api/deprecated/iostable/scrollpositions">

<div class="rst-class">

forsearch

</div>

</div>

iOSTable.ScrollPositions

### ScrollPositions

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

| Enum   | 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="iostable.accessibilityhint">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.AccessibilityHint

**AccessibilityHint** As `Text</api/deprecated/text>`

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 view."
```

<div id="iostable.accessibilitylabel">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.AccessibilityLabel

**AccessibilityLabel** As `Text</api/deprecated/text>`

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="iostable.allowrefresh">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.AllowRefresh

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

Enables iOS pull-to-refresh feature when True. When the user initiates the pull-to-refresh action, the Refreshed event is called. When done refreshing data, call the EndRefresh method.

<div id="iostable.datasource">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.DataSource

**DataSource** As `iOSTableDataSource</api/deprecated/iostabledatasource>`

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 iOSTableCell 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 iOSView.

<div id="iostable.editingenabled">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.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="iostable.estimatedrowheight">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.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="iostable.format">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Format

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

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

This property is read-only.

<div id="iostable.height">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Height

**Height** As `Double</api/data_types/double>`

The height of the control.

This property is read-only.

<div id="iostable.left">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Left

**Left** As `Double</api/data_types/double>`

The left position of the control.

This property is read-only.

<div id="iostable.name">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Name

**Name** As `Text</api/deprecated/text>`

The name of the control. This can only be set in the Inspector. Use the name to refer to the control.

This property is read-only.

<div id="iostable.parent">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Parent

**Parent** As `iOSControl</api/deprecated/ioscontrol>`

Indicates the control's parent object, if it has one. If there is no parent, this is Nil.

This property is read-only.

<div id="iostable.sectioncount">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.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="iostable.top">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Top

**Top** As `Double</api/data_types/double>`

The top position of the control.

This property is read-only.

<div id="iostable.visible">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Visible

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

Indicates whether the control is visible.

Make a button invisible:

``` xojo
Button1.Visible = False
```

<div id="iostable.width">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Width

**Width** As `Double</api/data_types/double>`

The width of the control.

This property is read-only.

## Method descriptions

<div id="iostable.addconstraint">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.AddConstraint

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

Adds a constraint to the control. This constraint is used by child controls that have been added to this control.

<div id="iostable.addcontrol">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.AddControl

**AddControl**(child As `MobileControl</api/user_interface/mobile/mobilecontrol>`)

Adds a child control to the control.

<div id="iostable.control">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Control

**Control**(index As `Integer</api/data_types/integer>`) As `MobileControl</api/user_interface/mobile/mobilecontrol>`

Gets the child control at the specified index.

<div id="iostable.controlcount">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.ControlCount

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

The number of child controls in the control.

<div id="iostable.createcell">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.CreateCell

**CreateCell**(text 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 `iOSTableCellData.AccessoryTypes<iostablecelldata.accessorytypes>` = `iOSTableCellData</api/deprecated/iostablecelldata>`) 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
Table1.AddSection("") ' No section will appear
Var cell As iOSTableCellData
cell = Table1.CreateCell("Red Sox", "MLB", redSoxLogo, iOSTableCellData.AccessoryTypes.Detail)
Table1.AddRow(0, cell)
```

<div id="iostable.createcustomcell">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.CreateCustomCell

**CreateCustomCell**(controlClass As `Introspection</api/language/introspection/introspection>`) 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.

*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 iOSTableCellData = 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
Table1.AddSection("")
Var cell As iOSTableCellData = Table1.CreateCustomCell(GetTypeInfo(MyTableCell))
Var container As MyTableCell = MyTableCell(cell.Control)
container.NameLabel.Text = "Some Text"
Table1.AddRow(0, cell)
```

<div id="iostable.endrefresh">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.EndRefresh

**EndRefresh**

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

<div id="iostable.handle">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Handle

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

The handle is used to get a reference to the control for interfacing directly with the iOS API.

<div id="iostable.insertrow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.InsertRow

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

Inserts the rowText for the section at the row index.

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

<div class="rst-class">

forsearch

</div>

iOSTable.InsertRow

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

Inserts the rowText for the section at the row index.

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.

Inserts a row at the beginning of the table, retrieving its value from the specified DataSource:

``` xojo
Table1.InsertRow(0, 0)
```

Inserts a row in the first section:

``` xojo
Var cell As New iOSTableCellData
cell.Text = "Hello"
Table1.InsertRow(0, 0, cell)
```

Inserts a row in the first position of the Table:

``` xojo
Table1.InsertRow(0, 0, "First Row")
```

<div id="iostable.invalidate">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Invalidate

**Invalidate**

Marks the control so that it will be redrawn during the next event loop.

Call Invalidate to force a Canvas to redraw itself:

``` xojo
Canvas1.Invalidate
```

<div id="iostable.reloaddata">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.ReloadData

**ReloadData**

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 `ReloadDataInSection<iostable.reloaddatainsection>` or `ReloadRow<iostable.reloadrow>` instead.

<div id="iostable.reloaddatainsection">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.ReloadDataInSection

**ReloadDataInSection**(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.ReloadDataInSection(0)
```

<div id="iostable.reloadrow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.ReloadRow

**ReloadRow**(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 Action event handler, reload the cell row after changing its AccessoryType:

``` xojo
Var cell As iOSTableCellData = Me.RowData(section, row)
cell.AccessoryType = iOSTableCellData.AccessoryTypes.Checkmark
Me.ReloadRow(section, row)
```

<div id="iostable.removeall">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.RemoveAll

**RemoveAll**

Removes all rows from the table.

Remove all rows:

``` xojo
Table1.RemoveAll
```

<div id="iostable.removeconstraint">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.RemoveConstraint

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

Removes a constraint from the control.

<div id="iostable.removecontrol">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.RemoveControl

**RemoveControl**(child As `MobileControl</api/user_interface/mobile/mobilecontrol>`)

Removes the control from the control.

<div id="iostable.removerow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.RemoveRow

**RemoveRow**(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.RemoveRow(0, 4)
```

<div id="iostable.removesection">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.RemoveSection

**RemoveSection**(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.RemoveSection(0)
```

<div id="iostable.rowcount">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.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="iostable.rowdata">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.RowData

**RowData**(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 ReloadRow to display the new information.

<div class="warning">

<div class="title">

Warning

</div>

An `OutOfBoundsException</api/exceptions/outofboundsexception>` will be raised if section and/or row does not exist.

</div>

Get all the cell data for the first row in the table and change its text:

``` xojo
Var cell As iOSTableCellData
cell = Table1.RowData(0, 0)
cell.Text = "Changed"
Table1.ReloadRow(0, 0)
```

<div id="iostable.scrolltorow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.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 iOSTable = 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, iOSTable.ScrollPositions.Middle)
```

<div id="iostable.settintcolor">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.SetTintColor

**SetTintColor**(value As `Color</api/data_types/color>`)

Changes a control's tint color. This varies by control and for some controls may not do anything. For example, with an `MobileTextField</api/user_interface/mobile/mobiletextfield>` this changes the cursor color.

## Event descriptions

<div id="iostable.accessoryaction">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.AccessoryAction

**AccessoryAction**(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 iOSTableCellData = Me.RowData(section, row)
```

<div id="iostable.action">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Action

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

Called when a row has been selected.

Get the selected row:

``` xojo
Var selectedCell As iOSTableCellData = Me.RowData(section, row)
```

<div id="iostable.actionsforrow">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.ActionsForRow

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

Use this event to specify the actions that can be performed for the given section/row.

Returns an array of iOSTableRowActions that will be available for the section/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 iOSTableDataSourceEditing and where its RowIsEditable method returns True.

Adds two actions to every row in the table:

``` xojo
Var actions(1) As iOSTableRowAction
' Create the More button
actions(0) = New iOSTableRowAction(iOSTableRowAction.Styles.Normal, "More...", "More")
' Create the Delete button
actions(1) = New iOSTableRowAction(iOSTableRowAction.Styles.Destructive, "Delete", "Delete")
Return actions
```

<div id="iostable.close">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Close

**Close**

Called when the control is removed from its container, such as a view.

<div id="iostable.open">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Open

**Open**

Called after the control is created. This is where you typically put initialization code.

Set label text in Open event:

``` xojo
Me.Text = "Hello"
```

<div id="iostable.refreshed">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.Refreshed

**Refreshed**

Called when AllowRefresh is True and the user has "pulled" to refresh the table.

Do or call you code to refresh the data here. Call the EndRefresh method when finished to close the pull-to-refresh UI.

<div id="iostable.rowaction">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.RowAction

**RowAction**(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 iOSTableDataSourceEditing and where its RowIsEditable method returns True.

Check the actionTag parameter:

``` xojo
Select actionTag
Case "More"
  ' ... show more info
Case "Delete"
  ' ... delete something
End Select
```

<div id="iostable.roweditingstyle">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTable.RowEditingStyle

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

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 iOSTableDataSource. \* The custom data source implements iOSTableDataSourceEditing 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.

## Notes

An <span class="title-ref">iOSTable</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
Table1.AddSection("") 
For i As Integer = 0 To 4
  Table1.AddRow(0, "Row " + i.ToText)
Next
```

## Compatibility

iOS projects on the iOS operating system.

## See also

`MobileControl</api/user_interface/mobile/mobilecontrol>` 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>` interfaces
