故事板中的自定义单元格行高度设置没有响应

问题描述:

我正在尝试调整表格视图中其中一个单元格的单元格高度。我正在从相关单元格的尺寸检查器中的行高设置中调整大小。当我在iPhone上运行应用程序时,单元格的默认大小设置为表格视图中的行大小。

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.

动态单元格上,在UITableView上设置的 rowHeight 始终会覆盖单个单元格的rowHeight。

On dynamic cells, rowHeight set on the UITableView always overrides the individual cells' rowHeight.

但是在静态单元格上,在单个单元格上设置的 rowHeight 可以覆盖UITableView的。

But on static cells, rowHeight set on individual cells can override UITableView's.

不确定这是不是一个错误,Apple可能会故意这样做?

Not sure if it's a bug, Apple might be intentionally doing this?