问题
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.
来源:https://stackoverflow.com/questions/33364236/why-is-there-a-space-between-the-cells-in-my-uitableview