gpt4 book ai didi

ios - 带有自定义单元格的表格 View 仍然是普通表格 View 吗?

转载 作者:行者123 更新时间:2023-11-29 02:22:52 25 4
gpt4 key购买 nike

Apple defines像下面这样的普通表格 View :

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)。如果你有一个“疯狂”的自定义单元格,它仍然是一个“普通”的表格 View 吗?或者它只对默认样式有效?因为文档只在屏幕截图上显示了默认样式。

最佳答案

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

关于ios - 带有自定义单元格的表格 View 仍然是普通表格 View 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27918421/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com