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.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
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 ofCALayer
) for each bar.I have another approach to this considering any performance issues you may face in future if your bars increases. You have a temporary CPTBarPlot with only one bar, to be used just for animation purpose. Use it to perform any animation and remove/hide it once you are done with animation.