【发布时间】:2011-07-22 18:44:32
【问题描述】:
是否可以在 MKmapview 上添加多个引脚?我已经添加了一个并完成了注释,我希望在 MKMapview 上添加多个引脚。请帮助我。
【问题讨论】:
-
是的,这是可能的。您遇到的确切问题或错误是什么?你试过什么?显示您是如何添加单个注释的。
-
我给出下面的代码来展示我的注释方法。
-
DDAnnotation *annotation = [[[DDAnnotation alloc] initWithCoordinate:theCoordinate addressDictionary:nil] autorelease]; DDAnnotation *annotation1 = [[[DDAnnotation alloc] initWithCoordinate:theCoordinate addressDictionary:nil] autorelease]; annotation.title = @"位置"; annotation1.title = @"位置"; annotation.subtitle = [NSString stringWithFormat:@"%f %f", annotation.coordinate.latitude, annotation.coordinate.longitude]; annotation1.subtitle = [NSString stringWithFormat:@"%f %f", annotation1.coordinate.latitude, annotation.