ios - How to apply auto layout to a group of items in Xcode? -


for example, add 1 label , 2 text fields main view. after that, want this group of items centered horizontally. is, center of group on center of superview. how achieve xcode or programmingly?

here steps 1. add subviews container enter image description here

  1. add constraints inside container labels , textfields
  2. add width / height constraint container
  3. align horisontally enter image description here
  4. constraints should enter image description here

Comments

Popular posts from this blog

c# - Where does the .ToList() go in LINQ query result -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -