此文主要講iOS項(xiàng)目中如何引用Core-Plot框架
1、下載Core-Plot,解壓并拷貝里面的
framework
文件夾到你的項(xiàng)目中(假設(shè)你的項(xiàng)目為testCorePlot
),最好重命名為CorePlotFramework
1
2、把
CorePlotFramework
中的CorePlot.xcodeproj
拖到項(xiàng)目中
2
3、選中
testCorePlot
,到Build Phases
中,添加CorePlot-CocoaTouch
到target dependencies
,再在Link Binary With Libraries
中添加libCorePlot-CocoaTouch.a
和Accelerate.framework
3
4、到
Build settings
中, 找到Header search paths
, 添加$(SRCROOT)/CoreplotFramework
, 后面選擇recursive
4
5、還是在
build settings
中,在Other Linker Flags
中添加-ObjC
5
6、在項(xiàng)目中引入
#import "CorePlot-CocoaTouch.h"
,正常編譯就可以使用了。