The object for providing the data type, data formatting, and label for a field in a table.
- Apple News Format 1.7+
The data type.
string. Short text values, shorter than a typical sentence. Column widths are calculated differently for
stringsupports data values that are provided as strings or as FormattedText.
text. Long text values, as long as a typical sentence or longer. Column widths are calculated differently for
textsupports data values that are provided as strings or as FormattedText.
image. Image URLs, starting with
bundle://for an image provided in the same location as
article, or starting with
https://for remote images. The images are displayed in the table. See Preparing Image, Video, Audio, Music, and ARKit Assets. To control image size, use a ImageDataFormat object as the value of the
number. Numerical values where the more specific data type is not known.
integer. Integer values.
float. Floating-point values. To format the value, use a FloatDataFormat in the
The name of this data descriptor. In a data record, you use this name as the key in a key-value pair, where the value is the data itself. This key must be unique across data descriptors in this data record store. See RecordStore.
The text to appear in the table header for this data category. This text can be provided as a string or a FormattedText object.
A unique identifier for this data descriptor. If used, identifiers must be unique across descriptors in this data record store. An identifier is required if you want to sort your table by any order other than the order in which the records are provided.
Data object defines the data in a table by including basic information such as data type, data format, and a name for this set of data that identifies the kind of information it is. For example, the name could be "product number" or "release year". An array of all the data descriptors for a table is located in the table’s RecordStore.