How iOS adds a. pch file

Source: Internet
Author: User

In the development process, we often use a lot of addresses, or the size of the screen, so we have to use these strings frequently, of course, we can set these strings as macros but the macro can only be accessed in this file, then we can set the global access to the file, We can add a file for a. pch

1, first we create a class with the usual steps to create the same

2. We have to make some adjustments after the creation.

Find this place in the file, and then we double-click the hint in the picture where we add the address of our PCH file

To find the path, we can right click on the. pch file and open it in the Finder, click on the PCH file indicated in the, and drag to the place where we need to fill in the address in the previous step

So we're going to add it.

Similarly, if our project changes position in the computer, then we also need to change the location of the PCH file address just now

How iOS adds a. pch file

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.