简体   繁体   中英

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:

在此处输入图片说明

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.

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

在此处输入图片说明

ctrl+drag from A to b and set a vertical spacing constraint. From that ctrl+drag menu, you can also align the centers/edges so you can have it laid out however you want it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM