您的位置:首页 > 产品设计 > UI/UE

UITableView 的Cell之间的间隔

2015-11-12 10:29 381 查看
自定义view作为每个cell的间隔

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return
self.recentArray.count;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{

return
1;
}

//设置每个cellfootview的高度
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
return
10;
}

//设置footview的颜色
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
UIView *footView = [[UIView
alloc] init];
footView.backgroundColor =
IWColor(239,
239, 239);
return footView;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: