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

Update title/subtitle of current displayed calloutview #56

Open
rathahin opened this issue Feb 24, 2014 · 2 comments
Open

Update title/subtitle of current displayed calloutview #56

rathahin opened this issue Feb 24, 2014 · 2 comments

Comments

@rathahin
Copy link

I working on a project that need to group annotation on the map. and when the number of annotation change, I expect to update the title/subtitle on current displayed calloutview.

I use to set title and subtitle, but that is not work. because the attribute of property is copy.

I also try another way, is dismiss and present, it work if I am not navigation map to another region, but if I change it will navigation map back to selected annotation.

I wonder how could I update title/subtitle to current callout view for selecting annotation.

Regards,
Ratha

@nfarina
Copy link
Owner

nfarina commented Mar 6, 2014

Hello - so the callout doesn't officially support changing its content after appearing - because this would require some complex animation to do it "the Apple way".

However you might try presenting the callout view again without animation - it would just update in place and resize itself.

@incanus
Copy link
Contributor

incanus commented Mar 6, 2014

We use such an approach over in https://github.com/mapbox/mapbox-ios-sdk in order to essentially move a callout with a map pan or zoom action. I've played with it for textual changes and had pretty good luck, too.

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

3 participants