コアプロットを使用して円グラフを作成しているときに、特定のコードのアニメーションを追加しました
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"];
このコードは、次のエラー セマンティックの問題を示します。
Implicit declaration of function 'DegreesToRadians' is invalid in C99
これを避けるために私は何ができますか?
また、実行時に次のエラーが発生します。
Apple_o Linker id error "_DegreesToRadians", referenced from:
感謝と敬意
ヴィジャヤクマール
Rhytha の iOS 開発者