iOS Questions and Answers

What are the delegate methods of MKMapView?

Firstly you have added the storeKit framework in your xcode project then define the protocol as in .h file.

– (void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;

– (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;

– (void)mapViewWillStartLoadingMap:(MKMapView *)mapView;

– (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView;

– (void)mapViewDidFailLoadingMap:(MKMapView *)mapView withError:(NSError *)error;

– (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation;

– (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views;