Podczas tworzenia wykresu kołowego za pomocą działka rdzenia I dodaną animację, że dla danego koduJak uniknąć tego stopnia do błędu radiana?
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"];
Ten kod daje następujący błąd Semantic problem:
Implicit declaration of function 'DegreesToRadians' is invalid in C99
Co mogę zrobić dla tego uniknąć?
A także czas pracy daje następujący błąd:
Apple_o Linker id error "_DegreesToRadians", referenced from:
Dziękuję i pozdrawiam
Vijayakumar
iOS Developer w Rhytha
Dziękuje u bardzo dużo @MidhunMp – Vijay
@VijayakumarNL: z przyjemnością :) –