[英]extra space between two custom cells in tableviewcontroller
This is my app这是我的应用程序
As you see, there is a space there, between the first and the second cell.如您所见,第一个和第二个单元格之间有一个空间。
i hit my head in the rock to find the error, and i couldn't我的头撞在了石头上寻找错误,但我不能
this is the contracts for the first cell这是第一个单元格的合同
i give you any information that you want,我给你你想要的任何信息,
please help请帮忙
as you see, the cell is longer (taller) than the content, i din't know how to fix it如您所见,单元格比内容长(高),我不知道如何修复它
By default, all table view cells have the same height.默认情况下,所有表格视图单元格都具有相同的高度。 If you don't like that, you can implement the table view delegate method
tableView:heightForRowAtIndexPath:
to give particular rows of the table a different height.如果您不喜欢那样,您可以实现表格视图委托方法
tableView:heightForRowAtIndexPath:
为表格的特定行提供不同的高度。
It is also possible to let the cell dictate its height from the inside out by way of constraints.也可以通过约束的方式让单元从内到外规定其高度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.