swift 学习笔记 UITableView (一)Table View Styles and Accessory Views

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. 


A table view configured as an indexed list


plain table view中的鳥丝:


A table view configured as an selection list


Grouped table Views


下面介绍table View中的战斗view Grouped table view, 区别于plain 他的背景不是单纯的白,他的背景会被分开来


A table view in the grouped style


section的成分:


Header and footer of a section



不同的UITableView Cell Style


以下为四多金花老大:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值