iOS UIDesign for All resolution

198 views Asked by At

I am working on Xcode 5.1.1. My app works fine on all resolutions including latest iPhone6 and 6Plus.But my problem is the images are stretched in new resolutions.

For example,

I am having image with the pixels of 200*75 .How to set this image for iPhone 3.5 inch,4 inch,4.7 and 5.5 screens?

My designs are based on 3.5 inch screen.But my designer gave me the image(200*75) from iPhone6 plus screen design.How to fit the image for all resolutions?

Any help would be greatly appreciated.

Thanks.

2

There are 2 answers

4
Sheshnath On

try this

 self.imageView.contentMode=UIViewContentModeScaleToFill;
0
Narendra Mistri On

We will need to apply auto layout + constraints in UI design so the app will support all devices.