故事板中的自定义单元格行高设置没有响应 [英] Custom Cell Row Height setting in storyboard is not responding
问题描述
我正在尝试调整表格视图中一个单元格的单元格高度.我正在根据相关单元格的大小检查器"内的行高"设置调整大小.当我在 iPhone 上运行该应用程序时,单元格的默认大小设置为表格视图中的行大小".
如果我改变表格视图的行大小",那么所有单元格的大小都会改变.我不想这样做,因为我只想要一个单元格的自定义大小.我看过很多帖子都提供了解决该问题的程序化解决方案,但如果可能的话,我更愿意通过故事板来解决.
在 dynamic 单元格上,在 UITableView 上设置的 rowHeight
始终覆盖单个单元格的 rowHeight.>
但是在静态单元格上,在单个单元格上设置的rowHeight
可以覆盖UITableView的.
不确定这是不是错误,Apple 可能是故意这样做的?
I am trying to adjust the cell height for one of the cells on my table view. I am adjusting the size from the "row height" setting inside the "size inspector" of the cell in question. When I run the app on my iPhone the cell has the default size set from the "row size" in the table view.
If I change the "row size" of the table view then the size of all cells changes. I do not want to do that as I want a custom size only for one cell. I have seen a lot of posts that have a programmatic solution to the problem, but I would prefer to do it through storyboard, if that is possible.
On dynamic cells, rowHeight
set on the UITableView always overrides the individual cells' rowHeight.
But on static cells, rowHeight
set on individual cells can override UITableView's.
Not sure if it's a bug, Apple might be intentionally doing this?
这篇关于故事板中的自定义单元格行高设置没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!