简体   繁体   中英

How make dynamic collectionview cells?

I have that view
在此处输入图片说明

If i press button, add more cells with information, but it dont show because collectionview is limited of constraints.
My constraints of collectionview :
在此处输入图片说明
My constraints of stackview:
在此处输入图片说明
My result:
在此处输入图片说明

How can make dynamic collectionview cells?

If you want to show dynamic cell in collection view then, why are you adding static cell and constraints? You can do using only one cell and change your content as per your requirements on every index. And if you want to add button on bottom side then you can add using footer view of collection view.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM