我正在像这样在地图视图中添加多个标记,
markers = [jsonDict objectForKey:key];
for (id k in markers) {
if ([k isEqualToString:@"latitude"]) {
mlat = [markers objectForKey:k];
dlat = [mlat doubleValue];
}
else if ([k isEqualToString:@"longitude"]) {
mlng = [markers objectForKey:k];
dlng = [mlng doubleValue];
}
else if ([k isEqualToString:@"file"]){
murl = [markers objectForKey:k];
}
else if ([k isEqualToString:@"comment"]){
mcomment = [markers objectForKey:k];
}
}
annotationCoord.latitude = dlat;
annotationCoord.longitude = dlng;
MKPointAnnotation *annotationPoint = [[MKPointAnnotation alloc] init];
annotationPoint.coordinate = annotationCoord;
[self.navimap addAnnotation:annotationPoint];
comment
现在,我想file
为didSelectAnnotationView
. 如果有人在这方面帮助我,将不胜感激。