- Table Views
- 专题
- 一、视图(Views)
- 二、行(Rows)
- 三、头部(Headers)和尾部(Footers)
- 四、装饰
- 五、拖放(Drag and Drop)
- ● 表视图(table view)支持拖放(Drag and Drop)
- ● protocol UITableViewDragDelegate
- ● protocol UITableViewDropDelegate
- ● protocol UITableViewDropCoordinator
- ● class UITableViewDropPlaceholder
- ● class UITableViewDropProposal
- ● protocol UITableViewDropItem
- ● protocol UITableViewDropPlaceholderContext
- ● protocol UIDataSourceTranslating
- ● class UITableViewPlaceholder
- 其他内容
- 专题
Table Views
在可自定义行的单列中显示数据。
专题
一、视图(Views)
● class UITableView
使用排列在单列中的行显示数据的视图(view)。
● class UITableViewController
一个专门管理表视图(table view)的视图控制器(view controller)。
● class UITableViewFocusUpdateContext
上下文对象,提供从一个视图(view)到另一个视图(view)的特定焦点更新相关的信息。
● class UILocalizedIndexedCollation
一个对象,它提供了对具有节索引的表视图(table view)进行组织、排序和本地化数据的方法。
二、行(Rows)
● class UITableViewCell
表视图(table view)中的单元格(译者注:即行(row))。
● class UISwipeActionsConfiguration
在对表(table)中的行(row)进行滑动时要执行的操作集。
● class UIContextualAction
用户滑动表格(table)中的行(row)时显示的操作。
● class UITableViewRowAction
用户在表格行(table)中水平滑动时显示的单个操作。
● enum UIContextualAction.Style
指示应用于操作按钮的样式信息的常量。
● Creating Self-Sizing Table View Cells
创建支持动态类型的表视图(table view)单元格(ell),并使用系统间距约束来调整文本标签(label)周围的间距。
三、头部(Headers)和尾部(Footers)
● class UITableViewHeaderFooterView
可重复使用的视图(view),可放置在表格(table)段(section)的顶部或底部,以显示该段(section)的其他信息。
四、装饰
● class UIRefreshControl
一个标准控件,可以启动滚动视图(scroll view)内容的刷新。
五、拖放(Drag and Drop)
● 表视图(table view)支持拖放(Drag and Drop)
从表视图(table view)启动拖动(drag)和处理放置(drop)。
● protocol UITableViewDragDelegate
用于从表视图(table view)启动拖动(drag)和的接口。
● protocol UITableViewDropDelegate
用于在表视图(table view)中处理放置(drop)的接口。
● protocol UITableViewDropCoordinator
用于协调与表视图(table view)中你自定义的放置(drop)相关操作的接口。
● class UITableViewDropPlaceholder
● class UITableViewDropProposal
你提出的处理表视图(table view)中的放置(drop)操作的解决方案。
● protocol UITableViewDropItem
和一个将要被放置到表视图(table view)中的item相关的数据。
● protocol UITableViewDropPlaceholderContext
在等待接收计划显示的实际数据时临时插入到表视图中的对象。
● protocol UIDataSourceTranslating
用于管理数据源对象的高级接口。
● class UITableViewPlaceholder
其他内容
● Collection Views
使用可配置且高度可自定义的布局显示嵌套视图(view)。
● class UIStackView
简化的界面,用于在列或行中布置视图(view)集合。
● class UIScrollView
允许滚动和缩放其包含视图(view)的视图(view)。