Why is there a space between the cells in my UITab

2019-03-23 10:11发布

问题:

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?

回答1:

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.



回答2:

To avoid spacing , you can set tableview background as your cell's contentView background.