PCH File Settings

Source: Internet
Author: User

PCH file is a globally visible file in iOS development, which generally writes the global variables required in the program to the PCH file as a macro definition, such as a screen fit, and how to add a PCH file after X-code6:

First Command+n, open the new File window: ios->other->pch file, create a PCH files add header filename

Then, modify the project configuration file, add the path to the PCH file you just created to the Precomplie header option in building setting, and note that the debug and release two columns are added:

You're done, you can add a macro definition to the PCH file!!!

PCH File Settings

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.