【发布时间】:2012-12-27 21:01:31
【问题描述】:
我正在开发一个在地图上带有注释的 iPhone 应用程序,并且我已经完成了所有注释的插入。我用于所有注释(x100)的代码是:
CLLocationCoordinate2D theCoordinate1;
theCoordinate1.latitude = 59.92855;
theCoordinate1.longitude = 10.80467;
MyAnnotation* myAnnotation1=[[MyAnnotation alloc] init];
myAnnotation1.coordinate=theCoordinate1;
myAnnotation1.title=@"Økern Senter - DNB";
myAnnotation1.subtitle=@"Økernveien 145, 0580 OSLO";
[mapView addAnnotation:myAnnotation1];
[annotations addObject:myAnnotation1];
我想知道的是如何在一个列表中获取所有这些位置,该列表显示最接近用户位置的注释?
【问题讨论】:
标签: objective-c xcode ios6 mapkit