Xcode Resource Copy

Source: Internet
Author: User

#1. Copy the meaning of the selection when copying the resources:
If you want to copy the resources to the project, if you do not tick to represent the non-copy, then the original resources are gone, the project can not be used
Attention:
1. Although the picture in the project and the external picture is the same picture, but this is only in the development phase, if the application installed on the phone, then the system will automatically copy a picture to the phone
2. Although the installation will be automatically copied, but still do not recommend that you do not check copy

Images can be placed in the Assets.xcassets folder in addition to the supporting files.
> If you are in supporting files, you need to add a suffix when using the picture
> If you put it in assets.xcassets, you don't need to add a suffix when using the picture.
> If it is in Assets.xcassets, the system will copy the picture automatically
> If you put it in assets.xcassets, you can make some additional property settings for the picture.
> If it is put into assets.xcassets, it can improve the security of the software, it will save the picture is encrypted and compressed into the Assets.car file

Meaning of Add to target
Whether the resource needs to be packaged into the main bundle (Xxx.app)
> If not checked, will not be packaged, that is, the program after the installation of resources will not be on the phone

Path to the emulator:
/users/User name/library/developer/coresimulator/devices/

Imagenamed: The default is to go to the Mian bundle to load, if it is in the Mian bundle subfolder, you need to tell the system specific path

  UIImage *image = [UIImage imagenamed:@ "lmeinv.jpg"];     *iv = [[Uiimageview alloc] initwithimage:image];    [Self.view Addsubview:iv];

Xcode Resource Copy

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.