带有自定义单元格的 table 视图仍然是普通的 table 视图吗?

Is a table view with custom cells still a plain table view?

Apple defines 一个简单的 table 视图,如下所示:

Plain. In the plain style, rows can be separated into labeled sections and an optional index can appear vertically along the right edge of the view. A header can appear before the first item in a section, and a footer can appear after the last item.

或在more detail:

A table view in the plain (or regular) style displays rows that stretch across the screen and have a creamy white background (see Figure 1-1). A plain table view can have one or more sections, sections can have one or more rows, and each section can have its own header or footer title. (A header or footer may also have a custom view, for instance one containing an image). When the user scrolls through a section with many rows, the header of the section floats to the top of the table view and the footer of the section floats to the bottom.

A variation of plain table views associates an index with sections for quick navigation; Figure 1-2 shows an example of this kind of table view, which is called an indexed list. The index runs down the right edge of the table view. Entries in the index correspond to section header titles. Touching an item in the index scrolls the table view to the associated section. For example, the section headings could be two-letter state abbreviations, and the rows for a section could be the cities in that state; touching at a certain spot in the index displays the cities for the selected state. The rows in indexed lists should not have disclosure indicators or detail disclosure buttons, because these interfere with the index.

现在您可以使用自定义单元格来代替四种默认样式(默认、副标题、值 1、值 2)。如果您有 "crazy" 自定义单元格,它仍然是 "plain" table 视图吗?或者它只对默认样式有效?因为文档只在屏幕截图上显示了默认样式。

table 视图样式影响 table 视图 — 而不是 table 视图单元格。所以是的,一个普通的 table 视图可以——而且应该有——自定义单元格。