Reprint Address: Http://blog.csdn.net/llfjfz/article/details/7849190#comments
Core plot is an open-source graphics library under OS X and iOS that provides visual processing of data, such as drawing graphs, histograms, and pie charts. How do I use the static library of core plot in my project? Here are a few steps:
First go to Google code download core plot graphics library, url http://code.google.com/p/core-plot/. At present the website provides coreplot_1.0.zip download, unzip after downloading.
Then open the "README for Static Library Install" file in the Readmes file in the compressed package, which reads as follows:
Install Binaries for IOS
1. Copy the coreplotheaders to your Xcode project
2. Copy libcoreplotcocoatouch.a to your Xcode project
3. Add to other Linker the Flags in your target build settings:
-objc-all_load
4. Add the quartzcore framework to the project.
5. Add a cptgraph to your application. See the example apps in Source Code to see how, or read the documentation.
In fact, how to use the static library of Coreplot This document is very clear, the following combination shows how to operate.
1. Locate the "Binaries-->ios" folder in the package, copy the entire "coreplotheaders" folder to the project, and copy the "Copy items into destination" Group ' s folder (if need) option.
2. Copy the "libcoreplotcocoatouch.a" in the above folder to the project, and also select the "Copy items into destination Group's folder (if need)" option.
3.Add "-objc-all_load" to the "other Linker Flags" selection of the project Target's compilation settings
After completing the above steps roughly as shown, note where to draw the red line:
4. Add the "Quartzcore" framework to the project and operate as follows:
This is already working, and the 5th is actually for programming, telling you to draw the graphic on "cptgraph". The specific code can refer to the Coreplot compression package comes with examples, where there is an example under iOS is more useful: "Coreplotgallery".