【发布时间】:2013-09-30 15:43:03
【问题描述】:
我有我朋友位置的纬度和经度以及我当前的位置。 我想在 iPhone 应用程序中显示我朋友相对于我的位置的位置,就像指南针一样。 我知道函数 didUpdateHeading -
-(void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading
{
NSLog(@"New magnetic heading: %f", newHeading.magneticHeading);
NSLog(@"New true heading: %f", newHeading.trueHeading);
}
我不知道如何做到这一点,请帮助我。
【问题讨论】:
标签: iphone ios objective-c location compass-geolocation