xcode 中的条形图
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5744692/
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
Bar Chart in xcode
提问by dhilipsiva
Possible Duplicate:
Objective-C Charting Framework
可能的重复:
Objective-C 图表框架
Does anyone know how to draw graphs and bar charts in xcode? Is it also possible to use data from an sqlite database to create these graphs? Also can these be autoupdated when the database is changed.
有谁知道如何在 xcode 中绘制图形和条形图?是否也可以使用 sqlite 数据库中的数据来创建这些图形?当数据库更改时,这些也可以自动更新。
Thank you for your help.
感谢您的帮助。
采纳答案by Rayfleck
Those are 3 separate questions.
这是3个独立的问题。
- graphs and charts: try Google Charts API
- Yes, it is possible if you write the code to fetch the data and pass it to the graphing api.
- Yes, they can if you write the right code to integrate the db changes to your view controllers.
- 图形和图表:尝试Google Charts API
- 是的,如果您编写代码来获取数据并将其传递给图形 API,则是可能的。
- 是的,如果您编写正确的代码将数据库更改集成到您的视图控制器,他们可以。
回答by Sabobin
回答by dhilipsiva
Try DSBarChart. It is created for this exact same purpose.
试试DSBarChart。它是为完全相同的目的而创建的。