Y
Y
Yuri2016-11-02 12:06:09
Objective-C
Yuri, 2016-11-02 12:06:09

How to position the image in the center of the screen, regardless of the position of the device screen?

Hello everyone please help!
you need to place the image as a background, but so that when the screen positions change from vertical to horizontal, the center of the image remains in the center, unfortunately I
9fb968b519af413082cfd80e41e85ca1.png
have an old solution on the left side, but it doesn’t work for me,
you need to do it as option 9

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AntiVIRUZ, 2016-11-03
@Abs3akt

Make all sides of the screen constrained to 0 pixels (each side of the UIImageView to each side of the parent view) and set the UIImageView to Aspect Fill

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question