Trong khi phát triển Biểu đồ hình tròn sử dụng cốt truyện lõi tôi thêm hình ảnh động cho điều đó cho mã choLàm thế nào để tránh mức độ này đến lỗi radian?
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"];
Mã này mang lại cho lỗi sau Issue Semantic:
Implicit declaration of function 'DegreesToRadians' is invalid in C99
Tôi có thể làm gì cho tránh điều này?
Và thời gian cũng chạy nó mang lại cho lỗi sau:
Apple_o Linker id error "_DegreesToRadians", referenced from:
Cảm ơn và chúc
Vijayakumar
iOS Developer tại Rhytha
Cảm ơn u rất nhiều @MidhunMp – Vijay
@VijayakumarNL: với niềm vui :) –