Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callout accessory delegate #83

Open
hsavit1 opened this issue May 10, 2015 · 2 comments
Open

Callout accessory delegate #83

hsavit1 opened this issue May 10, 2015 · 2 comments

Comments

@hsavit1
Copy link

hsavit1 commented May 10, 2015

is there any way to get the callout accessory to respond to the delegate

  • (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control{
    }
@hsavit1
Copy link
Author

hsavit1 commented May 10, 2015

I'm trying to pass some information when the callout accessory is tapped. I had subclassed the rightAccessoryButton to hold the properties that I need, then I added a selector to the button in a target-action pattern, but that only gives me mixed-up results.

I think the delegate method could help a bit if I can get it to go

@hsavit1
Copy link
Author

hsavit1 commented May 10, 2015

for any future reference, use the SMCallout delegate methods calloutViewDidAppear. It's not ideal but it can be helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant