- UITableViewStylePlain和UITableVie
- UITableViewStylePlain和UITableVie
- UITableViewStylePlain与UITableVie
- UITableViewStylePlain与UITableVie
- # UITableViewStylePlain和UITableV
- iOS UITableViewStylePlain和UITabl
- UITableViewStylePlain情况下,headvie
- UITableViewStyleGrouped和plain的两种
- UITableView的两种风格
- UITableView的Plain和Grouped&in
一、UITableView的UITableViewStyle
样式分为UITableViewStylePlain和UITableViewStyleGrouped两种;
plain样式下区头和区尾是悬浮的(即拖动表的时候区头和区尾不会消失,一直显示在界面上);
grouped样式区头和区尾是随表一起滑动的。静态的tableview需要分区时(XIB)样式只能是Grouped
二、表头和表尾
通过代码设置
tableHeaderView(表头):表最上面的区域
tableFooterView(表尾):表最下面的区域

三、区头和区尾
就是tableView表中Section的头和尾
设置区头和区尾的高度:

设置区头和区尾的文本:

自定义区头和区尾显示的View:

四、图解
这是样式为Grouped,一个区(section)带区头区尾和表头表尾的示意图!

网友评论