2011-08-17 2 views
2

私はiPhoneの開発とcoreplotを初めて使用しています。 私はいくつかのデータに基づいて、バーチカルを描きたいと思います。 私はプロットのバーにいくつかのアニメーションを与えたいと思います。つまり、グラフの棒グラフは、成長したり縮んだりするときに、伸び縮みする必要があります。barchart-coreplotの棒をアニメーション化する方法

誰かが私を助けることができますか?

ありがとうございます。

+0

[コアプロットの個々のバーのCALayerへのアクセス方法](http://stackoverflow.com/questions/8874948/how-to-access-calayer-of-individual-bar-in-core -プロット) –

答えて

0

どのクラスを使用しているのかわかりませんが、おそらくCAレイヤーのサブクラスです。アウト チェックこのコードを:

CABasicAnimation *rotation = [CABasicAnimation animationWithKeyPath:@"transform"]; 
CATransform3D transform = CATransform3DMakeRotation(DegreesToRadians(360), 0, 0, 1); 
rotation.toValue = [NSValue valueWithCATransform3D:transform]; 
rotation.duration = 10.0f; 
[pieChart addAnimation:rotation forKey:@"rotation"]; 

How to animate the pie charts developed using core-plot library?

関連する問題