此文主要講iOS項目中如何引用Core-Plot框架
1、下載Core-Plot,解壓并拷貝里面的
framework文件夾到你的項目中(假設(shè)你的項目為testCorePlot),最好重命名為CorePlotFramework

1
2、把
CorePlotFramework中的CorePlot.xcodeproj拖到項目中

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、在項目中引入
#import "CorePlot-CocoaTouch.h",正常編譯就可以使用了。
