简体   繁体   中英

iOS UIDesign for All resolution

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.

尝试这个

 self.imageView.contentMode=UIViewContentModeScaleToFill;

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM