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
以下爲四多金花老大: UITableViewCellStyleDefault
老二:UITableViewCellStyleSubtitle
阿克塞薩日(已炸): Accessory Views
Standard accessory views |
Description |
---|---|
|
Disclosure indicator— |
|
Detail disclosure button— |
|
Checkmark— |