iOS Developer Library — Pre-Release

Developer

MapKit Framework Reference MKTileOverlayRenderer Class Reference

Options
Deployment Target:

On This Page
Language:

MKTileOverlayRenderer

Inheritance


Conforms To


Import Statement


Swift

import MapKit

Objective-C

@import MapKit;

Availability


Available in iOS 7.0 and later.

An MKTileOverlayRenderer object handles the drawing of tiles managed by an MKTileOverlay object. You create instances of this class when tile overlays become visible on the map view. A renderer works closely with its associated tile overlay object to coordinate the loading and drawing of tiles at appropriate times.

For information about how to specify the tiles to display on the map, see MKTileOverlay Class Reference.

  • Initializes and returns a tile renderer with the specified overlay object.

    Declaration

    Swift

    init!(tileOverlay overlay: MKTileOverlay!)

    Objective-C

    - (instancetype)initWithTileOverlay:(MKTileOverlay *)overlay

    Parameters

    overlay

    The tile overlay object whose contents you want to draw.

    Return Value

    An initialized tile renderer object.

    Discussion

    The returned renderer object works with the tile overlay object to coordinate the loading and display of its map tiles.

    Import Statement

    Objective-C

    @import MapKit;

    Swift

    import MapKit

    Availability

    Available in iOS 7.0 and later.

  • Forces tiles to be reloaded and displayed.

    Declaration

    Swift

    func reloadData()

    Objective-C

    - (void)reloadData

    Discussion

    Use this method to remove the overlay’s existing tile images and reload them from the original source. This method automatically causes the renderer to redraw the new tiles as soon as they are loaded into memory.

    Import Statement

    Objective-C

    @import MapKit;

    Swift

    import MapKit

    Availability

    Available in iOS 7.0 and later.