如何访问核心图中单个条的CALayer? [英] How to access CALayer of individual bar in core-plot?

查看:48
本文介绍了如何访问核心图中单个条的CALayer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在图表中的每个条上执行动画,但是我不太确定如何访问每个条的calayer。

I am trying to perform an animation on each bar in the chart, however I am not quite sure how to access the calayer of each individual bar.

推荐答案

没有一个。所有条形图都绘制在一层中。如果需要分别为它们设置动画,请为每个条制作一个单独的 CPTBarPlot CALayer 的子类)。

There isn't one. All of the bars are drawn in one layer. If you need to animate them individually, make a separate CPTBarPlot (a subclass of CALayer) for each bar.

这篇关于如何访问核心图中单个条的CALayer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆