I have a button added to an annotation marker for a map view page in my iphone App
UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
[rightButton addTarget:self
action:@selector(go_to_detail_page:)
forControlEvents:UIControlEventTouchUpInside];
annView.rightCalloutAccessoryView = rightButton;
and my receiving function is
-(IBAction)go_to_detail_page:(id)sender;{
}
My question is the following. I am creating quite a lot of markers on my page and I would like to pass a unique identifier when that particular annotation view button is pressed, even a string would be fine. How can I pass a string to the go_to_detail_page
method once the annotation is pressed?