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 158 times
1

rmaddy
- 314,917
- 42
- 532
- 579

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,755
- 12
- 66
- 130
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
- 964
- 10
- 22