Why is there a space between the cells in my UITableView

瘦欲@ 提交于 2020-01-01 04:02:40

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!