iOS 使用CorePlot教程
来源:互联网 发布:qq群关系数据库在线 编辑:程序博客网 时间:2024/06/05 21:54
Core Plot是OS X和IOS下的一个开源图形库,它提供数据的可视化处理,就是画曲线图、柱状图和饼图等等。如何在项目中使用Core Plot的静态库呢?以下是几个步骤:
首先先去Google Code下载Core Plot图形库,网址 http://code.google.com/p/core-plot/ 。目前该网址提供了CorePlot_1.0.zip下载,下载后解压。
然后打开压缩包中的ReadMes文件中的“README for Static Library Install”文件,该文件内容如下:
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 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.
其实如何使用CorePlot的静态库该文档说明的很清楚了,以下结合示意图说明如何操作。
1.找到刚才压缩包中的"Binaries-->iOS"文件夹,把整个“CorePlotHeaders”文件夹拷贝到项目中,拷贝的时候记得选上“Copy items into destination group's folder(if need)”选项。
2.把上述文件夹中的"libCorePlotCocoaTouch.a"拷贝到项目中,也选上“Copy items into destination group's folder(if need)”选项。
3.项目目标的编译设置的“Other Linker Flags”选择项中加入 “-ObjC -all_load”
完成以上几个步骤后大致如下图所示,注意画红线的地方:
4.把“QuartzCore”框架加入项目中,操作如下:
到此已经可以工作了,第5点实际上是针对编程的,告诉你要把图形画在“CPTGraph”上。具体的代码可以参考CorePlot压缩包自带examples, 其中在ios下有个例子比较有用:“CorePlotGallery” 。
- iOS 使用CorePlot教程
- 在iOS项目中使用CorePlot框架
- CorePlot学习五----corePlot使用技巧及iOS内存优化之道
- corePlot使用技巧及iOS内存优化之道
- iOS coreplot 画图 入门
- iOS 图形库CorePlot
- iOS图形库CorePlot
- iOS图形库CorePlot
- iOS 之coreplot部分详解
- CorePlot
- CorePlot学习二---[深入浅出iOS库]之图形库CorePlot
- CorePlot使用的配置步骤
- CorePlot 1.2 的初步使用
- ios开发之使用CorePlot绘制折线图并添加拖动功能
- [深入浅出iOS库]之图形库CorePlot
- 【IOS】Instruments 使用教程
- iOS extern使用教程
- IOS:Instruments 使用教程
- oracle-索引使用 问题解答
- java.lang.OutOfMemoryError: Java heap space的解决办法
- 基于组件的软件工程
- 八皇后问题
- Notepad++使用心得和特色功能介绍 -> notepad/ultraedit的最好的替代品
- iOS 使用CorePlot教程
- 黑马程序员——递归原理学习笔记
- NoClassDefFoundError: org.apache.http.entity.mime.content.StringBody
- 国内最全最详细的hadoop2.2.0集群的HA高可靠的最简单配置
- cocos2dx3.2 整体概览(二)—— Director(导演)
- Chapter 3 Protecting the Data(2):分配列级权限
- Cocos2d-x 3.3 的3D开发功能介绍
- 跑马灯效果 文字上下滚动效果
- 2014华为南研所实习生求职