UItableView 的一些小细节

来源:互联网 发布:淘宝导航怎么装修代码 编辑:程序博客网 时间:2024/05/31 19:54

1 tableView的separatorStyle和separatorColor属性

我们可以通过设置tableView的separatorStyle属性来设置有无分割线以及分割线的风格,其中style定义如下:

typedef enum {    UITableViewCellSeparatorStyleNone,    UITableViewCellSeparatorStyleSingleLine,    UITableViewCellSeparatorStyleSingleLineEtched} UITableViewCellSeparatorStyle;

2 同时还可以通过tableView的separatorColor属性来设置分割线的颜色

3 UITableView的Group样式下顶部空白处理

//分组列表头部空白处理UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0.1)];self.tableView.tableHeaderView = view;

后续 继续更新。。。。。。。。。

0 0