iOS picture Management

Source: Internet
Author: User

At the time of development, multi-screen adaptation problems will always encounter the same map in 4, 4s, 5, 5s, 6, 6s, 6 Plus display the effect is very far. This time you need a picture of the same size in the same picture.

Simply record the tool below to make it easy to use again later

1. Select Assets.xcassets 2. Click the + button-->new image Set (in this column there will be one more picture management directory image "Double click Modify Name") 3. Click on the new Image management directory

4. Select the right side of the image box to right-click open to see the current is Universal (iphone + ipad) cancel this item and then tick Iphoone

5. This 1x corresponds to the normal display needs of the picture 2x corresponds to 4 4s 5 5s 6 6s need to use the image 3x corresponding 6plus 6s plus the required picture

The corresponding picture trustee corresponding to the dashed box can be

6. How to use the Image property in the ImageView properties panel select (Just double-click the modified name) picture Management directory name can be "at run time according to the phone model automatically switch pictures"!

iOS picture Management

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.