Search code examples
iosxcodeautolayout

How to set top of a view to bottom of another view


I would like to set top of a view to bottom of another view. like this:

enter image description here

A and B is a symbol to show what I want to do with views.

I want to A(image view) symbol always below of B (image view) symbol.

B view pinned in center horizontal and top of parent view.


Solution

  • Align the top of the right view to the bottom of the left view:

    enter image description here