设置UITableView的section之间的距离
2013-07-31 10:50
465 查看
设置UITableView的section之间的距离(本例中设置section之间的距离为20):
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 0.0;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
return 20.0;
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0,0, 320,20)];
view.backgroundColor = [UIColor clearColor];
return [view autorelease];
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 0.0;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
return 20.0;
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0,0, 320,20)];
view.backgroundColor = [UIColor clearColor];
return [view autorelease];
}
相关文章推荐
- 设置UITableView的section之间的距离
- 怎样设置UITableView的cell之间的距离
- 设置UITableView section之间的间距
- ios 修改UITableView的section之间的距离
- 解决iOS7中,tableView设置UITableViewStyleGrouped后的section之间空余问题
- uitableview group的一些问题 (设置两个section之间的距离,设置背景颜色 等)在plain下去掉foot view的粘性
- 怎样设置UITableView的cell之间的距离
- 解决iOS7中,tableView设置UITableViewStyleGrouped后的section之间空余问题
- ios 更改UITableview group形式 两个section之间的距离
- 快速设置UITableView不同section对应于不同种类的cell
- 1016-06-首页20-封装工具条---UITableView控件距离顶部的间距问题----cell选中时的背景颜色设置
- 设置UITableView Section的背景颜色和字体颜色 ----------自
- UITableView中设置section内行数以及配置cell的方法
- IOS uitableview中cell的分割线设置距离,并且去掉cell的边框,要不然多了一条细线
- iOS开发小技巧--TableView Group样式中控制每个section之间的距离
- UITableViewStyleGrouped 设置表头出现section不为0的问题
- tableview 设置group之间的距离
- UITableView设置headerInsectionView不悬浮
- UITableView根据section设置右侧索引
- UITableView+UITableViewStyleGrouped 处理section之间间隙