Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

PlutoM4

macrumors newbie
Original poster
Apr 11, 2014
10
0
Hi all!

I'm wondering why I get this kind of view on simulator:

4 inch:
http://awesomescreenshot.com/0ce2ofa8ef

3.5 inch:
http://awesomescreenshot.com/0472ofahc2

I have two images, called "pinup.png" at 320x480 and "pinup@2x.png" at 640x960. I tried both changing background programmatically and using an ImageView.

As you can see, in 3.5 simulator image has cutted legs and doesn't fit properly. Any hint to solve this annoying issue?

Thanks in advance! :)
 

mds1256

macrumors regular
Apr 9, 2011
167
43
Looks like you need to add some Auto Layout constraints on to the UIImageView, this should allow the UIImageView to change its height depending on what device it is on.
 

PlutoM4

macrumors newbie
Original poster
Apr 11, 2014
10
0
Looks like you need to add some Auto Layout constraints on to the UIImageView, this should allow the UIImageView to change its height depending on what device it is on.

Bingo!

You're right, I'm just adding constraints and it works perfectly!

Thanks mate!

;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.