码迷,mamicode.com
首页 > 移动开发 > 详细

iOS项目添加.pch文件 / How to add a .pch file to an iOS project

时间:2017-08-27 14:44:09      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:style   ref   uil   code   name   some   str   image   with   

1.Create a .pch file.

技术分享

2.Write your macro, headfiles or something. Here is my prefixHeader.pch

技术分享

3.Choose the Project and select "Build Settings"

   >>> find with keywords "prefix"

   >>>make the "Precompile Prefix Header" is "yes".

技术分享

技术分享

4.Tell Xcode where have you put your .pch file.

   Select "Prefix Header", Double click the content

   and write "$(SRCROOT)/magicNote/prefixHeader.pch"

             or "$(PROJECT_DIR)/your Project name/your prefix file name.pch" as below. 

技术分享

 

 5.Done.Save and run.

 

iOS项目添加.pch文件 / How to add a .pch file to an iOS project

标签:style   ref   uil   code   name   some   str   image   with   

原文地址:http://www.cnblogs.com/cl7429/p/7440238.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!