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.