iOS 8.1 image display

145 Views Asked by At

Having a weird problem and can't find anything after over an hour of searching.

I am using Xcode 8 but also experience the issue when using Xcode 7 (I copied the project directory and tested in Xcode7 - I am working in Xcode 8 and created the project in Xcode 8, I only did this for testing purposes) to run the project in the simulator. I have no code in the view controller at this point so I know the problem is not related to code.

I have a simple view created in a storyboard but when I run it on any 8.1 simulator or device the logo appears stretched/skewed.

screenshot

The original image is below:

enter image description here

I have created this simple placeholder image to make the point, originally I was using our company logo - so I know it's not an issue with the image since this one was just created.

I have tried removing all constraints from the image and just using width, height, and position constraints but the issue still persists.

Has anybody seen this happen before? What do I need to do to fix this?

1

There are 1 best solutions below

0
Thanveer Ahammed On

you may change the uiimageview's view mode to "Aspect Fill" or "Aspect Fit" in the utilities area . Check this