自定义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;
}