Deprecated MKMapView Methods

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

Deprecated in iOS 7.0

viewForOverlay:

Returns the view associated with the overlay object if any. (Deprecated in iOS 7.0. Use the rendererForOverlay: method instead.)

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

The overlay object whose view you want.

Return Value

The view associated with the overlay object or nil if the overlay is not onscreen.

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