- UIStackView(main)
- UIView(sub)
- UILabel,UIButton etc.
- UIview (sub)
- may be others views
- UIView(sub)
All these are programmatically with constraints. And may be UIView of UILabel or UIButtons are create into loops. One by One.
Please help !!
If you want to create these views programatically, i would recommend these two libraries. They make adding/removing/updating/managing constraints very easy.
Objective-c
https://github.com/SnapKit/Masonry
Swift
You can use apple Native NSLayoutAnchor to create constraints programatically. Which is sort and simple like SnapKit/Masonry.
UITableVieworUICollectionView? They simplify subview creation and layout as well as having a better memory usage. They are both designed for displaying a dynamic count of subviews.