I have annotations on a mapview and a callout with a button on each. What I need to do is grab properties from this callout, ie. the title, but logging this line:
Here is what I did in the annotationviewClick function:
Hope this helps
-(IBAction) annotationViewClick:(id) sender{ [self.view addSubview:LoadingView]; Annotation *ann = [myMap.selectedAnnotations objectAtIndex:([myMap.selectedAnnotations count]-1)]; NSLog(@"Selected:%@", [ann tag]); }