Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is there a space between the cells in my UITableView

Tags:

I have UITableView with 1 section and 10 rows with blue background. Why am I getting space between the cells? How do I remove it?

tvOS Simulator

like image 784
pechr Avatar asked Oct 27 '15 09:10

pechr


People also ask

How can we use a reusable cell in UITableView?

For performance reasons, a table view's data source should generally reuse UITableViewCell objects when it assigns cells to rows in its tableView(_:cellForRowAt:) method. A table view maintains a queue or list of UITableViewCell objects that the data source has marked for reuse.


1 Answers

This is the default behaviour on tvOS. This way there is space to scale up the cell which has focus without the scaled cell overlapping its neighbours.

like image 137
phlebotinum Avatar answered Oct 13 '22 10:10

phlebotinum