1 Reply
      Latest reply on Jan 22, 2019 3:08 PM by Claude31
      bubblegum Level 1 Level 1 (0 points)

        can someone tell me how to use autoresize to center my selected in blue view?? if i add the "center in view" constraint it erases all of the autoresizing...https://snag.gy/2XqQLI.jpg

        • Re: How to use both autolayout and constraints
          Claude31 Level 8 Level 8 (5,775 points)

          What do you want to get ?

           

          Autoresize is for inside view to grow and shrink with the outer view.

           

          If you want to center (not resize), just define constraints : center horizontally and vertically.

           

          If you want both, first center the inner view in the outerview

          Then use autresize and select the inside arrows (horizontal and vertical) of the target, not the segments on the border.