在iPhone上绘制简单的图表
有谁知道现有的代码可以在我的 iPhone 应用程序中为我绘制图表吗?我只需要一个简单的线图,没有标签或标题,甚至数据的轴标签。
或者有人知道从哪里开始以便我可以学习如何画这样的东西吗?我从未处理过 iPhone 的实际图形。到目前为止,我所有的应用程序都只是基于图像。
谢谢!
Does anyone know of any existing code that will draw a graph for me in my iPhone application? I just need a simple line graph without labels or a title or even axis labels for the data.
Or does anyone have ideas about where to start so that I can learn how to draw such a thing? I've never dealt with actual graphics for the iPhone. All my applications are just image based until now.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试用 Core Plot 框架 http://code.google.com/p/core-plot/
Try out the Core Plot framework http://code.google.com/p/core-plot/
如果您尝试自己绘制,则可以使用 Path 函数在 Quartz 中的上下文中绘制
。有很多示例代码可以处理 Quartz 中的上下文和绘制。
但可能有一些库可以帮助您绘制图表...不过,其他人必须帮助您,而不是我的那杯茶:)
If you would attempt to draw yourself, you'd use the Path functions to draw in a context in Quartz
There is a lot of sample code to deal with context and drawing in quartz.
But there are probably some libraries to facilitate drawing graphs... someone else would have to help you with those though, not my cup of tea :)