Reputation: 11
I have plotted annotations in iPhone Map, now I need to handle the onclick/ontab event for the annotation. Please provide the ways to do that.
Thanks, Chandra
Upvotes: 1
Views: 1006
Reputation: 1033
First you should give title to pins.If you give then only the delegate methodmapView:didSelectAnnotationView:
. tou can handle now.
Upvotes: 0
Reputation: 170849
When annotation gets selected map view calls mapView:didSelectAnnotationView:
method in its delegate, so to handle tap event you should implement that method in your map delegate.
Upvotes: 2