设置UITableView的section之间的距离
2014-02-25 10:27
597 查看
设置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];
}
转载自:http://blog.csdn.net/xumingwei12345/article/details/9664773
- (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];
}
转载自:http://blog.csdn.net/xumingwei12345/article/details/9664773
相关文章推荐
- 设置UITableView的section之间的距离
- 怎样设置UITableView的cell之间的距离
- 设置UITableView section之间的间距
- 解决iOS7中,tableView设置UITableViewStyleGrouped后的section之间空余问题
- ios 更改UITableview group形式 两个section之间的距离
- 怎样设置UITableView的cell之间的距离
- ios 修改UITableView的section之间的距离
- 解决iOS7中,tableView设置UITableViewStyleGrouped后的section之间空余问题
- uitableview group的一些问题 (设置两个section之间的距离,设置背景颜色 等)在plain下去掉foot view的粘性
- iOS设置tableViewCell之间的间距(去掉UItableview headerview黏性)
- 自定义TextView中的文字之间设置子间距离
- iOS开发中设置UITableView每组头试图与第一行cell之间的分割线
- Android代码设置TextView的顶部图及设置图与字体之间距离
- 设置UITableView Section的背景颜色和字体颜色-自定义Section
- 1016-06-首页20-封装工具条---UITableView控件距离顶部的间距问题----cell选中时的背景颜色设置
- 设置UITableView Section的背景颜色和字体颜色
- IOS_设置UITableView Section的背景颜色和字体颜色(自定义section布局)
- 快速设置UITableView不同section对应于不同种类的cell
- iphone uitableview 设置分区标题(section title)
- IOS uitableview中cell的分割线设置距离,并且去掉cell的边框,要不然多了一条细线