jeudi 1 janvier 2015

Image not scaling right on iphone 4 and iphone 5 simulator

I want to add an image using storyboard to a view that is an edge to edge image. Image width is 640 and height 285. I named the image image@2x.png for iphone 4s and image-568h@2x.png for iphone 5 and added them to the Images.xcassets folder.


On the view in the storyboard I added constraints: 0 on top right and left and some value on down.


When I run iphone 5 simulator I get the following result which is fine: http://ift.tt/1yb8fwy


But the problem is when I run it on 4s it seems like the image shifts up: http://ift.tt/1tsRBSg


What is the problem?




Aucun commentaire:

Enregistrer un commentaire