iOS开发Pch文件的使用
2016-03-16 本文已影响0人
飞奔的小胖子
先说下pch文件的作用:
可以存放一些全局的宏, 一些头文件, 能自动打开或者关闭日志输出功能等.

配置Pch文件的步骤:
1.新建 --> Other --> PCH File, 然后next创建pch文件
2.next后填写pch文件的名字Targets打钩, 然后Create
3.去Build Setting里面找到Prefix Header,把新建的PCH文件的路径复制到里面(注:Debug和Relase里面都要填PCH的路径)

然后就可以使用了