M Chandra sekaran
M Chandra sekaran

Reputation: 11

Handle Onclick(on tap) event for iPhone Map Annotations

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

Answers (2)

Rama Rao
Rama Rao

Reputation: 1033

First you should give title to pins.If you give then only the delegate methodmapView:didSelectAnnotationView:. tou can handle now.

Upvotes: 0

Vladimir
Vladimir

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

Related Questions