当前位置:首页 > 操作系统 > Ios

IOS添加pch文件

1:什么是pch文件

2:创建pch文件

<1>

技术分享

<2>

技术分享

3:添加到工程

targets -->Build Settings -->Prefix Header

技术分享

4:在pch文件中添加头文件

             1
            #ifndef _602Demo_PrefixHeader_pch

             2
            #define _602Demo_PrefixHeader_pch
 3 4#ifdef __OBJC__
 5#import <UIKit/UIKit.h>
 6#import <Foundation/Foundation.h>
 7#import"YXGCD.h" 8#import"NSString+File.h" 9#endif1011#endif

 

原文:http://www.cnblogs.com/guojunzi/p/4547379.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!