[Go] using the Coreplot framework in iOS projects

Source: Internet
Author: User

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".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.