-2

I have that view
enter image description here

If i press button, add more cells with information, but it dont show because collectionview is limited of constraints.
My constraints of collectionview:
enter image description here
My constraints of stackview:
enter image description here
My result:
enter image description here

How can make dynamic collectionview cells?

4

1 回答 1

0

如果你想在集合视图中显示动态单元格,为什么要添加静态单元格和约束?您可以只使用一个单元格并根据您对每个索引的要求更改内容。如果你想在底部添加按钮,那么你可以使用集合视图的页脚视图添加。

于 2019-01-09T12:56:45.260 回答