Reputation: 6188
I have placed an image on an iOS screen and in the area that remains in the bottom, I would like to place another image in the centre of that space. I could do that with Android using relative layouts. How can this be achieved in iOS auto layout?
Upvotes: 0
Views: 132
Reputation: 3567
This is an simple example.
Just select the Horizontal Center in Container
after pin other required constrains.
And this is the final layout constrains:
Upvotes: 0
Reputation: 9397
Let the image view take up the remaining bottom space (fairly easy to do using auto layout), and then set its contentMode
to Center.
Upvotes: 1