因为xcode6不会自动添加.pch文件,这样会有部分头文件、宏定义添加变得复杂,所以我们需要学习怎么手动添加.pch文件。
1、新建文件:ios->other->PCH File.
2、修改工程配置文件,building setting->Prefix Header。地址方法:xcode文件名/xcode文件名-Prefix.pch
因为xcode6不会自动添加.pch文件,这样会有部分头文件、宏定义添加变得复杂,所以我们需要学习怎么手动添加.pch文件。
1、新建文件:ios->other->PCH File.
2、修改工程配置文件,building setting->Prefix Header。地址方法:xcode文件名/xcode文件名-Prefix.pch