I have a tableView in this tableview data comes dynamically . I want to show only data available cell separation line not in hole tableview separation line like below image.
Asked
Active
Viewed 155 times
1
rmaddy
- 307,833
- 40
- 508
- 550
Anil Prasad
- 711
- 1
- 6
- 16
3 Answers
0
in case when your array count(table datasource) in less then 6. you need to make table height dynamic.. by calculating (array count) * row height(44). .
if your array count is greater then 6 then you doesn't need to do anything
Rohit
- 577
- 1
- 3
- 13
0
Set TableView Separator None
Then, Create a custom TableViewCell, needed views and at the bottom add a label like a line,
Vineesh TP
- 7,389
- 10
- 58
- 118
0
I'm not sure if that is what you want, but is seems to me that solution would be to either set the table view style to Grouped or override tableView: viewForFooterInSection: method:
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
return [[UIView alloc] initWithFrame:CGRectZero];
}
user3581248
- 924
- 10
- 21