I want to navigate to next class through tap on MKAnnotationView on MKMapView. How can I do this plz give some sample code for this.
I had done this code..explained below..
- (void)mapView:(MKMapView *)mapView1 didSelectAnnotationView:(MKAnnotationView *)customAnnotationView
{
//Here Push to another view controller
}
One problem is that when clicking on one item, this method calls and It will navigate to other class but when I come back and again tap on the same item this method not called.
Please help me to solve me this problem…
Thanks in advance…
you need to implement this method:-
edited:-
you need to implement following method.
previous:-
in your
- (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>) annotationmethod