Deprecated MKMapViewDelegate Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 7.0

mapView:didAddOverlayViews:

Tells the delegate that one or more overlay views were added to the map. (Deprecated in iOS 7.0. Implement the mapView:didAddOverlayRenderers: method instead.)

- (void)mapView:(MKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews
Parameters
mapView

The map view that added the overlay views.

overlayViews

An array of MKOverlayView objects representing the views that were added.

Discussion

By the time this method is called, the specified views are already added to the map.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 7.0.
Declared In
MKMapView.h

mapView:viewForOverlay:

Asks the delegate for the overlay view to use when displaying the specified overlay object. (Deprecated in iOS 7.0. Implement the mapView:rendererForOverlay: method instead.)

- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id < MKOverlay >)overlay
Parameters
mapView

The map view that requested the overlay view.

overlay

The object representing the overlay that is about to be displayed.

Return Value

The view to use when presenting the specified overlay on the map. If you return nil, no view is displayed for the specified overlay object.

Discussion

Prior to iOS 7, you would implement this method to provide the views for your overlay objects.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 7.0.
Declared In
MKMapView.h