0

我可以得到以下代表的磁航向值吗?如果是这样,我怎样才能把它变成一个UILabel

- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading {

}
4

1 回答 1

2

是的:

- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading {
    myLabel.text = [NSString stringWithFormat:@"%f", [newHeading magneticHeading]];
}
于 2011-05-05T05:38:50.987 回答