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

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -