我想制作罗盘应用程序,现在我想问一下如何使用newHeading.magneticHeading
和CGAffineTransform
使UIImageView
的一端指针始终指向北极?以及如何提高准确度?
- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading
{
NSLog(@"New magnetic heading: %f", newHeading.magneticHeading);
NSLog(@"New true heading: %f", newHeading.trueHeading);
}