我正在使用以下代码,并且它在地图视图上仅显示一个引脚(注释)。请帮我弄清楚我的错误。为什么只有一个视图引脚注释显示?
- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views
{
//Here
NSLog(@"didAddAnnotationViews");
[self.mapView selectAnnotation:[[self.mapView annotations] objectAtIndex:0] animated:NO];
[self.mapView selectAnnotation:[[self.mapView annotations] objectAtIndex:1] animated:NO];
[self.mapView selectAnnotation:[[self.mapView annotations] objectAtIndex:2] animated:NO];
[self.mapView selectAnnotation:[[self.mapView annotations] objectAtIndex:3] animated:NO];
}
为什么只有一个视图引脚注释显示?
我的意思是标注... ^^如何同时显示多个标注! http://oi52.tinypic.com/14t3t09.jpg – user1547227
看到我编辑的答案...它可能会帮助你.. – Nit