swift 学习笔记 UITableView (一)Table View Styles and Accessory Views
2016-10-10 16:30
921 查看
Table View Styles 和 附属的views
Table View有各种不同的Style去match不同的porpose, 而且, UIKit framework提供了标准的Style,同样也为cell提供了标准的子view。
table View Styles
根据外观可以区分成两个table view: Plain 和 Grouped
Plain table view:
如下图,一个plain table view可以有一个或多个section, 每个section可以有一个或多个row,每个色彩体噢内可以有自己的header & footer( header和footer也可以包含custom view, 比如图片), 当用户在section中滚动时,header和footer会浮动在上/下屏幕
以下为plain table view中的贵族,indexed list.
plain table view中的鳥丝:
Grouped table Views
下面介绍table View中的战斗view Grouped table view, 区别于plain 他的背景不是单纯的白,他的背景会被分开来
section的成分:
不同的UITableView Cell Style
以下为四多金花老大:
老二:UITableViewCellStyleSubtitle
三:
四:
阿克塞萨日(已炸): Accessory Views
Table View有各种不同的Style去match不同的porpose, 而且, UIKit framework提供了标准的Style,同样也为cell提供了标准的子view。
table View Styles
根据外观可以区分成两个table view: Plain 和 Grouped
Plain table view:
如下图,一个plain table view可以有一个或多个section, 每个section可以有一个或多个row,每个色彩体噢内可以有自己的header & footer( header和footer也可以包含custom view, 比如图片), 当用户在section中滚动时,header和footer会浮动在上/下屏幕
以下为plain table view中的贵族,indexed list.
plain table view中的鳥丝:
Grouped table Views
下面介绍table View中的战斗view Grouped table view, 区别于plain 他的背景不是单纯的白,他的背景会被分开来
section的成分:
不同的UITableView Cell Style
以下为四多金花老大:
UITableViewCellStyleDefault
老二:UITableViewCellStyleSubtitle
三:
UITableViewCellStyleValue1
四:
UITableViewCellStyleValue2
阿克塞萨日(已炸): Accessory Views
Standard accessory views | Description |
---|---|
Disclosure indicator—UITableViewCellAccessoryDisclosureIndicator. You use the disclosure indicator when selecting a cell results in the display of another table view reflecting the next level in the data model hierarchy. | |
Detail disclosure button—UITableViewCellAccessoryDetailDisclosureButton. You use the detail disclosure button when selecting a cell results in a detail view of that item (which may or may not be a table view). | |
Checkmark—UITableViewCellAccessoryCheckmark. You use a checkmark when a touch on a row results in the selection of that item. This kind of table view is known as a selection list, and it is analogous to a pop-up list. Selection lists can limit selections to one row, or they can allow multiple rows with checkmarks. |
相关文章推荐
- Swift 学习笔记 UITableView (二)Overview of the table View API
- (apple官方文档译文)表视图样式和扩展视图-Table View Styles and Accessory Views
- Table View Programming Guide for iOS---(二)----Table View Styles and Accessory Views
- Swift UI学习之UITableView and protocol use
- 2013斯坦福大学iOS应用开发学习笔记 11 Table View and iPad
- Swift UI学习之UITableView and protocol use
- Swift 学习笔记 (三) —— Table view徜徉在Data Hierarchy的海洋
- UITableView学习笔记 与 个人体会
- UITableView学习笔记
- ((ios开发学习笔记 十一))自定义TableViewCell 的方式实现自定义TableView(带源码)
- IOS UITableView 学习笔记
- IOS tableview 学习笔记
- iOS学习笔记13— UITableView封装之下拉-上提-图片异步加载
- cocos2d-x 菜鸟学习笔记七(界面控件之scrollView与tableView)
- WWDC笔记:2011 Session 125 UITableView Changes, Tips and Tricks
- 第二章、小控件实例 tableview,button(iOS学习笔记,从零开始。)
- UITableView学习笔记
- iOS学习笔记2—关于tableView的一些简单操作
- UITableView学习笔记