#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