How to place the UIImageView at the half of another view in Storyboard

Viewed 2294

I want to place an UIImageView at the half of an another UIView. I have set the constraints like this:

Constraints Settings

I need the square image view to be at the half of the orange UIView . The above position of UIImageView is correct but it slightly moves up in 6 and SE screens. Please look at the screenshots: See the square screenshot it has moved up in SE

enter image description here enter image description here

Why it is happening and how to prevent the UIImageView from moving up ? Do we need some other constraints?

What should be the constraints for the Green UIButton Placed to the right side of the UIImageView?

UIButton Green color

3 Answers
Related