Does the separator add to the overall height of the UITableView?

If I had 1000 rows, would a single-line line separator increase the table in height? Or is this overlay only on the cell?

+4
source share
2 answers

I made a simple test application - created a UITableView with 1000 rows and manually set its content offset:

- (void) viewWillAppear:(BOOL)animated{ [table reloadData]; [table setContentOffset:CGPointMake(0, 44*500) animated:NO]; // rowHeight equals 44 } 

Both with a table of the form of a line separator, and without it, it scrolls to the same position. Thus, it seems that the line separator does not affect the size of the contents of the table.

+6
source

That would make the table big! I think the separator is 1px high.

-2
source

Source: https://habr.com/ru/post/1307016/


All Articles