如何减少/删除分组UITableView中的左/右边距? [英] how to reduce/remove the left/right hand margin in a grouped UITableView?
本文介绍了如何减少/删除分组UITableView中的左/右边距?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何减少/删除分组UITableView中的左/右边距?
How to reduce/remove the left/right hand margin in a grouped UITableView?
有没有办法在不定义自定义视图的情况下执行此操作,即直接使用UITableViewController?
Is there a way to do this without defining a custom view, i.e. using a UITableViewController directly?
我不是在这里询问细胞之间的空间,它是左边的空间和左边的空间。你看到的细胞的权利。
I'm NOT asking here about the space between cells, it the space to the left & right of cells you see.
编辑1:我可以澄清:
- 已经在我的解决方案中有一个自定义UITableViewCell(@interface AppointCell:UITableViewCell)
- 我认为这些自定义UITableViewCell左右两侧的区域不是直接来自单元格本身 - 我这样说只是当我在单元格周围放置一个边框时(通过它的图层)我可以看到这个 - 所以看起来空间来自UITableView本身(不是单元格)
- 应该再次指出我正在使用GROUPED模式进行表格视图
推荐答案
当然;只需调整UITableView的框架,使其比它的超视图稍微宽一点,并在左边界的左边(换句话说,在负X方向上)。
Sure; just adjust the frame of the UITableView so it's a little wider than its superview and a little to the left (in the negative X direction, in other words) of its left boundary.
这篇关于如何减少/删除分组UITableView中的左/右边距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文