How to contraint the bottom edge and top edge of a view to another view in auto layout ios?

Viewed 123

I am trying to place a circular imageview on top of another imageview something like in the picture. Does anyone know how i can achieve it.

Circular imageview on top of imageview

2 Answers

In storyboard, you can do it by setting circular image align bottom to image view with half size of your circular image. In my case circular image's height is 100 so, it's half is 50. Please see following image for detail.

enter image description here

Hope this help!

you should give center vertical constraint and then open constraint property and change first item or second item (as per your requirement) center y to top option Like

enter image description here

Related