在使用核心情節我添加了對於給定的代碼動畫發展餅圖如何避免這種程度的弧度誤差?
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:
感謝和問候
維賈雅庫馬爾
在RhythaiOS開發
感謝ü非常@MidhunMp – Vijay
@VijayakumarNL:愉快:) –