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:
- #import <CorePlot/CorePlot.h>
2. Open Project-> Edit Project Settings and for All deployments:
1) Add to Additional SDKS:
- (System)
- /Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk
- (User)
- ${HOME}/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk
2) Add to Other Linker Flags:
- -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!