欢迎使用CSDN-markdown编辑器

来源:互联网 发布:淘宝蚂蚁花呗在哪开通 编辑:程序博客网 时间:2024/06/10 23:58

tableview的group类型消除header view

在创建tableview之前一定要先加这一行代码

[self.view addSubview:[[UIView alloc] init]];

然后就是设置header和footer的高度了

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{    return 0;}- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{    return CONVER_VALUE(12.0f);}
0 0
原创粉丝点击