The iPhone provides four basic table View cells. After SDK 3.0, each cell has three attributes: textlabel, detailtextlabel, and imageview.
The following describes the four basic formats:
1. uitableviewcellstyledefault
The format provides a simple left-aligned text tag textlabel and an optional image imageview. If the image is displayed, the image is on the leftmost side.
Although this format can be set to detailtextlabel, this label is not displayed.
2. uitableviewcellstylesubtitle
Compared with the previous one, this format adds support for detailtextlabel. The label is displayed under the textlabel label, and the font is relatively small.
3. uitableviewcellstylevalue1
In this format, textlabel is displayed on the left, detailtextlabel is displayed on the right, and the font is small.
This format does not support images.
4. uitableviewcellstylevalue2
In this format, a small blue main label textlabel is displayed on the right, and a small black subtitle detail label detailtextlabel is displayed.
This format does not support Images
I personally think that the formats 1 and 2 are mostly used. If these two cannot meet my requirements, we will use the custom uitableviewcell method.