I'm experiencing exceptional behaviour from MapKit delegate
-(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation (id<MKAnnotation>)annotation
{
MKAnnotationView *annotationView=[mapView viewForAnnotation:annotation];
return annotationView;
}
When i add the annotation to mapkit and setdelegate to self this method is not called.But when i set the region like
MKCoordinateRegion viewRegion = MKCoordinateRegionMakeWithDistance(coordinate, 7.5*1609.344 ,7.5*1609.344 );
[productsMapView setRegion:viewRegion animated:YES];
then delegate method is called.I dont know why this is happening.Some one help