Sachin Khaire Sachin Khaire - 1 year ago 101
iOS Question

Creating views dynamically with autolayout constraints? in Objective-C?

  • UIStackView(main)

    • UIView(sub)

      • UILabel,UIButton etc.

    • UIview (sub)

    • may be others views

All these are programmatically with constraints. And may be UIView of UILabel or UIButtons are create into loops. One by One.

Please help !!

Answer Source

If you want to create these views programatically, i would recommend these two libraries. They make adding/removing/updating/managing constraints very easy.



Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download