The difference between the folder and group of the IOS Xcode project catalog

Source: Internet
Author: User

One of the small problems encountered when using AFN is the difference between folder and group.

The problem that appears in the previous article: AFN basic use
Let's look at a different picture:


Snip20150705_1.png

The blue is the folder yellow is group.

The difference:
    1. Group is generally only in the form of folders in your project, but in the local directory is still scattered in the form of the same, unless you are quoted in the form of group from outside.
    2. Folder can only be used as a resource, the entire reference into the project, cannot compile the code, that is, the file is referenced in folder form, can not be placed in the Complie sources list.
To reference a file in the form of folder

I drag the external folder into my Xcode project directory and the dialog box pops up.


Snip20150705_2.png

The first radio button is group, and the second radio button is folder.

    1. Copy Check button, refers to the file is not under the project directory, for example, the project on the desktop, the file under Download, you copy will be copied into the project. If the file is already inside the project, no action is taken. Regardless of it, the emphasis is on the following radio box.

    2. Here I choose to refer to folders in the form of folder, click Finish, as shown, the folder is blue, and the list of compiled files did not introduce this file, the document folder reference, only refer to folders, the contents of the folder will be copied directly to bundle, do not participate in the compilation.

    3. Referencing a file as a group
      Back in the first step of 1, select Create groups for any added folders, click Done, as shown, the folder is yellow, and the list of compiled files magically exists in this file.


The difference between the folder and group of the IOS Xcode project catalog

Related Article

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.