【发布时间】:2012-03-16 05:04:09
【问题描述】:
我有一个固定的纬度和经度,所以我使用它并用 pin 在 mapview 中得到了点。现在我想要当前位置并绘制路线,所以我认为使用 gps 可以获得纬度和经度。使用这个位置(纬度和经度)我必须用我的固定值(纬度和经度)绘制一条路线。这怎么可能..?这是正确的方法吗? ?如何用两点绘制路线..?
我使用了委托方法,但它没有调用,
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
{
[manager stopUpdatingHeading];
NSLog(@"latitude=%f",newLocation.coordinate.latitude);
NSLog(@"longitude=%f",newLocation.coordinate.longitude);
}
【问题讨论】:
标签: iphone gps mkmapview core-location