How to align an image horizontally inside an ImageView iOS?
<p>I have an image view in landscape mode. When I selects an image from gallery, that selected image can be in landscape, portrait and square. And also I transform the original image into <code>1280x960</code>. After the image selected the image should be change according to the image. Currently I got the following output. How may I centre the image inside the image view?
<a href="https://i.stack.imgur.com/1cFSq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1cFSq.png" alt="enter image description here"></a></p>