iOS 上的折线图
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7254882/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Line graphs on iOS
提问by Joel Joseph
Anyone know how to create line graphs on iOS without using Core-Plot but using inbuilt frameworks? Desperately searching for an answer.
有人知道如何在不使用 Core-Plot 而是使用内置框架的情况下在 iOS 上创建折线图吗?拼命寻找答案。
回答by Parth Bhatt
Some of the charting libraries for iPhone/iPad that I found were:
我发现的一些适用于 iPhone/iPad 的图表库是:
http://code.google.com/p/core-plot/
http://code.google.com/p/core-plot/
http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/
http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/
You can use whatever you feel convenient with.
您可以使用任何您觉得方便的东西。
I would prefer using Core Plot Librarythough
我宁愿使用核心绘图库虽然
Hope this helps you.
希望这对你有帮助。
EDIT:
编辑:
You can refer to this link to integrate the graph library core plot into your app.
您可以参考此链接将图形库核心绘图集成到您的应用程序中。
http://tech.pro/tutorial/939/using-core-plot-in-an-iphone-application
http://tech.pro/tutorial/939/using-core-plot-in-an-iphone-application
And once your core plot repository is downloaded,you can go to the folder suggested by Brad Larson (in the below link) to get a tutorial for line chart.
下载核心绘图存储库后,您可以转到 Brad Larson 建议的文件夹(在下面的链接中)以获取折线图教程。
Are there any examples for how to draw a line chart in Core Plot on the iPhone?
有没有关于如何在 iPhone 上的 Core Plot 中绘制折线图的示例?
Also you can refer it here:
你也可以在这里参考:
http://code.google.com/p/core-plot/source/browse/#hg/examples
http://code.google.com/p/core-plot/source/browse/#hg/examples
回答by lxt
Apple have some sample code for drawing graphic in Quartz here:
Apple 有一些在 Quartz 中绘制图形的示例代码:
http://developer.apple.com/library/ios/#samplecode/AccelerometerGraph/Introduction/Intro.html
http://developer.apple.com/library/ios/#samplecode/AccelerometerGraph/Introduction/Intro.html
回答by ColinE
As well as CorePlot, there are several commercial tools for iOS charting:
除了 CorePlot,还有几个用于 iOS 图表的商业工具:
As a full disclosure, I work for Scott Logic which is the parent company for ShinobiControls.
作为一个完整的披露,我为 ShinobiControls 的母公司 Scott Logic 工作。
回答by beryllium
Try to use CoreAnimation, CoreGraphics, Quartzframeworks.
尝试使用CoreAnimation、CoreGraphics、Quartz框架。