How Add a legend to Core Plot in iPhone SDK?(如何在 iPhone SDK 的 Core Plot 中添加图例?)
问题描述
如何在 Core Plot 框架中添加图例?
How can I add Legends in Core Plot framework?
我非常感谢任何指导或帮助.
I am greatly appreciative of any guidance or help.
推荐答案
目前还没有 Legend 类.有时您可以使用图像来伪造它,但它还没有出现在 Core Plot 中.查看drawmcco评论
Legends 尚未在 Core Plot 中实现.非常欢迎您为框架贡献它们的实现.
Legends have not yet been implemented in Core Plot. You're more than welcome to contribute an implementation of them to the framework.
与此同时,您可以使用 UILabels 和彩色线条构建一个自定义 UIView 作为图形的图例,然后将其作为同级添加到图形中(不是子视图,否则将无法正确呈现)和命令它显示在图表上方.检查 Brad Larson 答案
In the meantime, you could construct a custom UIView with UILabels and colored lines to act as the legend for the graph, then add it as a sibling to the graph (not a subview, or it will not be rendered properly) and order it to show above the graph. Check Brad Larson Answer
这篇关于如何在 iPhone SDK 的 Core Plot 中添加图例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 iPhone SDK 的 Core Plot 中添加图例?
基础教程推荐
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- iOS4 创建后台定时器 2022-01-01
