About iOS picture adaptation

Source: Internet
Author: User

Apple's products are more and more, the size of the screen is also a variety of, the original need not how to consider the adaptation problem is now more and more prominent. The aspect ratio is different also to forget, pixel accurate to single bit really can't endure, don't say, first.

Today I want to put a full screen picture in the program, but there is a problem when setting up the source of the picture. 6plus Although not the standard 3 times times, but with @[email protected] can also solve, 4s,5,5s,6 when reading pictures are used [email Protected], wherein, 5,5s,6 aspect ratio is roughly 0.562 or so, this one is also done, but the 4S 320*480 is very difficult to deal with, the picture shows flat flat. So I try to set a unique image for 4S.

Get hardware information
Uidevice *device=[uidevice Currentdevice];
Output phone model NSLog (@ "%@", device.systemname);

About iOS picture adaptation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.