为什么我的 UITableView 中的单元格之间有空格 [英] Why is there a space between the cells in my UITableView

查看:28
本文介绍了为什么我的 UITableView 中的单元格之间有空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 UITableView 1 个部分和 10 行蓝色背景.为什么我在单元格之间有空间?如何删除它?

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 上的默认行为.这样就有空间来放大具有焦点的单元格,而不会与相邻单元格重叠.

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.

这篇关于为什么我的 UITableView 中的单元格之间有空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆