0
我知道你可以使用像创建自定义的注解视图:更改MKAnnotationView自定义图像?
-(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
{
MKPinAnnotationView *annotationView = [[[CustomAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"CustomAnnotation"] autorelease];
annotationView.image = [UIImage imageNamed:@"customPin.png"];
return annotationView;
}
..但我怎么改变形象在我的代码其他部分。(已与上面创建之后)?