IOS development framework: Core Plot SDK usage

Source: Internet
Author: User

IOS developmentFrameworkCore Plot SDKThe usage is what we will introduce in this article. We have learned how to use the Core Plot open-source framework in the previous blog.Core PlotFramework. For more information, see the detailed description of this article.

If the Core Plot standard Mac installation package is used for installation, there are some changes in usage. In fact, if you notice the last interface of the installer, here is an introduction to how to use it:

To add the Core Plot SDKs to an iOS Project:

1. Add to your project's. PCH file:

 
 
  1. #import <CorePlot/CorePlot.h> 

2. Open Project-> Edit Project Settings and for All deployments:

1) Add to Additional SDKS:

 
 
  1. (System)  
  2. /Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk  
  3. (User)  
  4. ${HOME}/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk 

2) Add to Other Linker Flags:

 
 
  1. -ObjC -all_load -lCorePlot 

3. Add the QuartzCore framework to the project.

4. Add a CPGraph to your application.

However, even if you step by step, you may not be able to compile a Core Plot application project.

This is because in Project Build Info, C/C ++ Compiler Version must use llvm gcc 4.2 instead of GCC 4.2.

Also, if you # import "CorePlot-CocoaTouch.h" in the source file, it will cause an error.

Because the SDK header file is CorePlot. h, not the CorePlot-CocoaTouch.h. But we have already imported CorePlot. h In the. PCH file, and do not need to display the import in the source file.

Summary:IOS developmentFramework: AboutCore Plot SDKI hope this article will help you with your usage!

Related Article

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.