Due to the extensive updates since iOS7, I wanted to ask this question because of my limited experience with autolayout and the new stackview, and I am wondering what is the best design practice to implement the following in Objective-C (not swift yet):
In my view, there is a container scroll view, with a child container UIView. Within this UIView, there are a number of elements. One of the elements is a stack of UIViews which differ in number once in a while.
This element is followed by a map and other views.
This is how I plan on organizing it:
Questions
- Is this the correct thing to do? How would I modify the height constraint for the stackview when I remove and add elements programmatically?
- How do you add a subview to the UIStackView through interface builder? When I do, the subview takes the size of the containing stackview.