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

</div>

Class

# iOSTableCellData

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

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `MobileTableCellData</api/user_interface/mobile/mobiletablecelldata>` as a replacement.

</div>

## Description

A cell within an iOSTable.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                            | Type                                              | Read-Only | Shared |
|-------------------------------------------------|---------------------------------------------------|-----------|--------|
| `AccessoryType<iostablecelldata.accessorytype>` | `AccessoryTypes<iostablecelldata.accessorytypes>` |           |        |
| `Control<iostablecelldata.control>`             | `iOSControl</api/deprecated/ioscontrol>`          | ✓         |        |
| `DetailText<iostablecelldata.detailtext>`       | `Text</api/deprecated/text>`                      |           |        |
| `Handle<iostablecelldata.handle>`               | `Ptr</api/data_types/additional_types/ptr>`       | ✓         |        |
| `Image<iostablecelldata.image>`                 | `iOSImage</api/deprecated/iosimage>`              |           |        |
| `Tag<iostablecelldata.tag>`                     | `Auto</api/deprecated/auto>`                      |           |        |
| `Text<iostablecelldata.text>`                   | `Text</api/deprecated/text>`                      |           |        |

## Enumerations

<div id="iostablecelldata.accessorytypes">

<div class="rst-class">

forsearch

</div>

</div>

iOSTableCellData.AccessoryTypes

### AccessoryTypes

Additional UI controls for a cell. (Disclosure, Detail, Checkmark)

| Enum       | Description                                                                                                                                                                                                                                                                                                                                                                                         |
|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| None       | A standard plain cell. This is the default for cells.                                                                                                                                                                                                                                                                                                                                               |
| Disclosure | You use the disclosure indicator when selecting a cell results in the display of another table view reflecting the next level in the data model hierarchy. This does not track touches, so it does not call the iOSTable.AccessoryAction event handler. Looks similar to a right arrow or "greater than" symbol.                                                                                    |
| Detail     | You use the detail disclosure button when selecting a cell results in a detail view of that item (which may or may not be a table view). This tracks touches and touching it calls the iOSTable.AccessoryAction event handler. Looks like an "i" within a circle.                                                                                                                                   |
| Checkmark  | You use a checkmark when a touch on a row results in the selection of that item. This kind of table view is known as a selection list, and it is analogous to a pop-up list. Selection lists can limit selections to one row, or they can allow multiple rows with checkmarks. This does not track touches, so it does not call the iOSTable.AccessoryAction event handler. Looks like a checkmark. |

## Property descriptions

<div id="iostablecelldata.accessorytype">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTableCellData.AccessoryType

**AccessoryType** As `AccessoryTypes<iostablecelldata.accessorytypes>`

The accessory type that is displayed in the cell.

Create a new cell with a checkmark accessory:

``` xojo
Var cell As iOSTableCellData = Table1.CreateCell
cell.Text = "Sample"
cell.AccessoryType = iOSTableCellData.AccessoryTypes.Checkmark
Table1.AddRow(0, cell)
```

<div id="iostablecelldata.control">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTableCellData.Control

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

The custom control in use by this cell, if it was created by `iOSTable.CreateCustomCell<iostable.createcustomcell>`.

This property is read-only.

<div id="iostablecelldata.detailtext">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTableCellData.DetailText

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

The the smaller text that appears below the main Text in the cell.

Set the detail text:

``` xojo
Var cell As iOSTableCellData = Table1.CreateCell
cell.Text = "Acme Widget"
cell.DetailText = "Price: $3.00"
Table1.AddRow(0, cell)
```

<div id="iostablecelldata.handle">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTableCellData.Handle

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

The underlying UITableViewCell. This is only available for cells created with `iOSTable.CreateCell<iostable.createcell>` or `iOSTable.CreateCustomCell<iostable.createcustomcell>`.

This property is read-only.

<div id="iostablecelldata.image">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTableCellData.Image

**Image** As `iOSImage</api/deprecated/iosimage>`

The image for the cell.

Set the cell image:

``` xojo
Var cell As iOSTableCellData = Table1.CreateCell
cell.Text = "Acme Widget"
cell.Image = widgetImage
Table1.AddRow(0, cell)
```

<div id="iostablecelldata.tag">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTableCellData.Tag

**Tag** As `Auto</api/deprecated/auto>`

A tag value for the cell.

Add a cell tag:

``` xojo
Var cell As iOSTableCellData = Table1.CreateCell
cell.Text = "Acme Widget"
cell.Tag = "123" ' part ID
Table1.AddRow(0, cell)
```

<div id="iostablecelldata.text">

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

</div>

<div class="rst-class">

forsearch

</div>

iOSTableCellData.Text

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

The text of the cell. This is the main (large) text that appears for the row.

Set the text:

``` xojo
Var cell As iOSTableCellData = Table1.CreateCell
cell.Text = "Acme Widget"
Table1.AddRow(0, cell)
```

## Notes

You cannot directly create an <span class="title-ref">iOSTableCellData</span> object using its constructor. Instead use the `iOSTable.CreateCell<iostable.createcell>` or `iOSTable.CreateCustomCell<iostable.createcustomcell>` methods.

## Compatibility

iOS projects on the iOS operating system.

## See also

`Object</api/data_types/additional_types/object>` parent class; `iOSMobileTable</api/ios/iosmobiletable>`, `MobileTableCustomCell</api/user_interface/mobile/mobiletablecustomcell>` controls; `iOSMobileTableDataSource</api/ios/iosmobiletabledatasource>` interface
