Documentation Archive Developer
Search

MapKit Changes

MapKit

Removed MKDirectionsTransportType.value
Added MKDirectionsTransportType.init(rawValue: UInt)
Added NSValue.init(MKCoordinate: CLLocationCoordinate2D)
Added NSValue.init(MKCoordinateSpan: MKCoordinateSpan)
Added NSValue.MKCoordinateSpanValue
Added NSValue.MKCoordinateValue
Modified MKAnnotation.setCoordinate(CLLocationCoordinate2D)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKAnnotationView
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MKAnnotationView.init(annotation: MKAnnotation!, reuseIdentifier: String!)
Declaration
From
init(annotation annotation: MKAnnotation!, reuseIdentifier reuseIdentifier: String!)
To
init!(annotation annotation: MKAnnotation!, reuseIdentifier reuseIdentifier: String!)

Modified MKAnnotationView.dragState
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKAnnotationView.draggable
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKAnnotationView.setDragState(MKAnnotationViewDragState, animated: Bool)
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MKAnnotationViewDragState [enum]
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKCircle
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKCircle.init(centerCoordinate: CLLocationCoordinate2D, radius: CLLocationDistance)
Declaration
From
convenience init(centerCoordinate coord: CLLocationCoordinate2D, radius radius: CLLocationDistance)
To
convenience init!(centerCoordinate coord: CLLocationCoordinate2D, radius radius: CLLocationDistance)

Modified MKCircle.init(mapRect: MKMapRect)
Declaration
From
convenience init(mapRect mapRect: MKMapRect)
To
convenience init!(mapRect mapRect: MKMapRect)

Modified MKCircleRenderer
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKCircleRenderer.init(circle: MKCircle!)
Declaration
From
init(circle circle: MKCircle!)
To
init!(circle circle: MKCircle!)

Modified MKCircleView
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKDirections
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDirections.init(request: MKDirectionsRequest!)
Declaration
From
init(request request: MKDirectionsRequest!)
To
init!(request request: MKDirectionsRequest!)

Modified MKDirectionsRequest
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKDirectionsRequest.arrivalDate
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDirectionsRequest.init(contentsOfURL: NSURL!)
DeclarationIntroduction
From
init(contentsOfURL url: NSURL!)
iOS 8.0
To
init!(contentsOfURL url: NSURL!)
iOS 6.0

Modified MKDirectionsRequest.departureDate
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDirectionsRequest.destination() -> MKMapItem!
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKDirectionsRequest.isDirectionsRequestURL(NSURL!) -> Bool [class]
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKDirectionsRequest.requestsAlternateRoutes
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDirectionsRequest.setDestination(MKMapItem!)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDirectionsRequest.setSource(MKMapItem!)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDirectionsRequest.source() -> MKMapItem!
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKDirectionsRequest.transportType
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDirectionsResponse
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDirectionsTransportType [struct]
DeclarationIntroduction
From
struct MKDirectionsTransportType : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var Automobile: MKDirectionsTransportType { get }
    static var Walking: MKDirectionsTransportType { get }
    static var Any: MKDirectionsTransportType { get }
}
iOS 8.0
To
struct MKDirectionsTransportType : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var Automobile: MKDirectionsTransportType { get }
    static var Walking: MKDirectionsTransportType { get }
    static var Any: MKDirectionsTransportType { get }
}
iOS 7.0

Modified MKDirectionsTransportType.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified MKDistanceFormatter
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDistanceFormatterUnitStyle [enum]
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKDistanceFormatterUnits [enum]
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKETAResponse
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKErrorCode [enum]
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MKGeodesicPolyline
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKGeodesicPolyline.init(coordinates: UnsafeMutablePointer<CLLocationCoordinate2D>, count: Int)
Declaration
From
convenience init(coordinates coords: UnsafeMutablePointer<CLLocationCoordinate2D>, count count: Int)
To
convenience init!(coordinates coords: UnsafeMutablePointer<CLLocationCoordinate2D>, count count: Int)

Modified MKGeodesicPolyline.init(points: UnsafeMutablePointer<MKMapPoint>, count: Int)
Declaration
From
convenience init(points points: UnsafeMutablePointer<MKMapPoint>, count count: Int)
To
convenience init!(points points: UnsafeMutablePointer<MKMapPoint>, count count: Int)

Modified MKLocalSearch
Introduction
FromiOS 8.0
ToiOS 6.1

Modified MKLocalSearch.init(request: MKLocalSearchRequest!)
Declaration
From
init(request request: MKLocalSearchRequest!)
To
init!(request request: MKLocalSearchRequest!)

Modified MKLocalSearchRequest
Introduction
FromiOS 8.0
ToiOS 6.1

Modified MKLocalSearchResponse
Introduction
FromiOS 8.0
ToiOS 6.1

Modified MKMapCamera
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapCamera.init(lookingAtCenterCoordinate: CLLocationCoordinate2D, fromEyeCoordinate: CLLocationCoordinate2D, eyeAltitude: CLLocationDistance)
Declaration
From
convenience init(lookingAtCenterCoordinate centerCoordinate: CLLocationCoordinate2D, fromEyeCoordinate eyeCoordinate: CLLocationCoordinate2D, eyeAltitude eyeAltitude: CLLocationDistance)
To
convenience init!(lookingAtCenterCoordinate centerCoordinate: CLLocationCoordinate2D, fromEyeCoordinate eyeCoordinate: CLLocationCoordinate2D, eyeAltitude eyeAltitude: CLLocationDistance)

Modified MKMapItem
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKMapItem.init(placemark: MKPlacemark!)
Declaration
From
init(placemark placemark: MKPlacemark!)
To
init!(placemark placemark: MKPlacemark!)

Modified MKMapSnapshot
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapSnapshotOptions
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapSnapshotter
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapSnapshotter.init(options: MKMapSnapshotOptions!)
Declaration
From
init(options options: MKMapSnapshotOptions!)
To
init!(options options: MKMapSnapshotOptions!)

Modified MKMapType [enum]
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MKMapView
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MKMapView.addOverlay(MKOverlay!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapView.addOverlay(MKOverlay!, level: MKOverlayLevel)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.addOverlays([AnyObject]!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapView.addOverlays([AnyObject]!, level: MKOverlayLevel)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.annotationsInMapRect(MKMapRect) -> NSSet!
Introduction
FromiOS 8.0
ToiOS 4.2

Modified MKMapView.camera
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.exchangeOverlay(MKOverlay!, withOverlay: MKOverlay!)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.exchangeOverlayAtIndex(Int, withOverlayAtIndex: Int)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapView.insertOverlay(MKOverlay!, aboveOverlay: MKOverlay!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapView.insertOverlay(MKOverlay!, atIndex: Int)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapView.insertOverlay(MKOverlay!, atIndex: Int, level: MKOverlayLevel)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.insertOverlay(MKOverlay!, belowOverlay: MKOverlay!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapView.overlays
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapView.overlaysInLevel(MKOverlayLevel) -> [AnyObject]!
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.pitchEnabled
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.removeOverlay(MKOverlay!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapView.removeOverlays([AnyObject]!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapView.rendererForOverlay(MKOverlay!) -> MKOverlayRenderer!
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.rotateEnabled
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.setCamera(MKMapCamera!, animated: Bool)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.setUserTrackingMode(MKUserTrackingMode, animated: Bool)
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MKMapView.showAnnotations([AnyObject]!, animated: Bool)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.showsBuildings
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.showsPointsOfInterest
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapView.userTrackingMode
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MKMapViewDelegate.mapView(MKMapView!, annotationView: MKAnnotationView!, didChangeDragState: MKAnnotationViewDragState, fromOldState: MKAnnotationViewDragState)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapViewDelegate.mapView(MKMapView!, didAddOverlayRenderers:[AnyObject]!)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapViewDelegate.mapView(MKMapView!, didChangeUserTrackingMode: MKUserTrackingMode, animated: Bool)
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MKMapViewDelegate.mapView(MKMapView!, didDeselectAnnotationView: MKAnnotationView!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapViewDelegate.mapView(MKMapView!, didFailToLocateUserWithError: NSError!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapViewDelegate.mapView(MKMapView!, didSelectAnnotationView: MKAnnotationView!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapViewDelegate.mapView(MKMapView!, didUpdateUserLocation: MKUserLocation!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapViewDelegate.mapView(MKMapView!, rendererForOverlay: MKOverlay!) -> MKOverlayRenderer!
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapViewDelegate.mapViewDidFinishRenderingMap(MKMapView!, fullyRendered: Bool)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMapViewDelegate.mapViewDidStopLocatingUser(MKMapView!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapViewDelegate.mapViewWillStartLocatingUser(MKMapView!)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapViewDelegate.mapViewWillStartRenderingMap(MKMapView!)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKMultiPoint
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKOverlay.canReplaceMapContent() -> Bool
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKOverlayLevel [enum]
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKOverlayPathRenderer
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKOverlayPathView
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKOverlayRenderer
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKOverlayRenderer.init(overlay: MKOverlay!)
Declaration
From
init(overlay overlay: MKOverlay!)
To
init!(overlay overlay: MKOverlay!)

Modified MKOverlayView
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKPinAnnotationColor [enum]
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MKPinAnnotationView
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MKPlacemark
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MKPlacemark.init(coordinate: CLLocationCoordinate2D, addressDictionary:[NSObject: AnyObject]!)
Declaration
From
init(coordinate coordinate: CLLocationCoordinate2D, addressDictionary addressDictionary: [NSObject : AnyObject]!)
To
init!(coordinate coordinate: CLLocationCoordinate2D, addressDictionary addressDictionary: [NSObject : AnyObject]!)

Modified MKPointAnnotation
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKPolygon
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKPolygon.init(coordinates: UnsafeMutablePointer<CLLocationCoordinate2D>, count: Int)
Declaration
From
convenience init(coordinates coords: UnsafeMutablePointer<CLLocationCoordinate2D>, count count: Int)
To
convenience init!(coordinates coords: UnsafeMutablePointer<CLLocationCoordinate2D>, count count: Int)

Modified MKPolygon.init(coordinates: UnsafeMutablePointer<CLLocationCoordinate2D>, count: Int, interiorPolygons:[AnyObject]!)
Declaration
From
convenience init(coordinates coords: UnsafeMutablePointer<CLLocationCoordinate2D>, count count: Int, interiorPolygons interiorPolygons: [AnyObject]!)
To
convenience init!(coordinates coords: UnsafeMutablePointer<CLLocationCoordinate2D>, count count: Int, interiorPolygons interiorPolygons: [AnyObject]!)

Modified MKPolygon.init(points: UnsafeMutablePointer<MKMapPoint>, count: Int)
Declaration
From
convenience init(points points: UnsafeMutablePointer<MKMapPoint>, count count: Int)
To
convenience init!(points points: UnsafeMutablePointer<MKMapPoint>, count count: Int)

Modified MKPolygon.init(points: UnsafeMutablePointer<MKMapPoint>, count: Int, interiorPolygons:[AnyObject]!)
Declaration
From
convenience init(points points: UnsafeMutablePointer<MKMapPoint>, count count: Int, interiorPolygons interiorPolygons: [AnyObject]!)
To
convenience init!(points points: UnsafeMutablePointer<MKMapPoint>, count count: Int, interiorPolygons interiorPolygons: [AnyObject]!)

Modified MKPolygonRenderer
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKPolygonRenderer.init(polygon: MKPolygon!)
Declaration
From
init(polygon polygon: MKPolygon!)
To
init!(polygon polygon: MKPolygon!)

Modified MKPolygonView
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKPolyline
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKPolyline.init(coordinates: UnsafeMutablePointer<CLLocationCoordinate2D>, count: Int)
Declaration
From
convenience init(coordinates coords: UnsafeMutablePointer<CLLocationCoordinate2D>, count count: Int)
To
convenience init!(coordinates coords: UnsafeMutablePointer<CLLocationCoordinate2D>, count count: Int)

Modified MKPolyline.init(points: UnsafeMutablePointer<MKMapPoint>, count: Int)
Declaration
From
convenience init(points points: UnsafeMutablePointer<MKMapPoint>, count count: Int)
To
convenience init!(points points: UnsafeMutablePointer<MKMapPoint>, count count: Int)

Modified MKPolylineRenderer
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKPolylineRenderer.init(polyline: MKPolyline!)
Declaration
From
init(polyline polyline: MKPolyline!)
To
init!(polyline polyline: MKPolyline!)

Modified MKPolylineView
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKRoute
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKRouteStep
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKShape
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKTileOverlay
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKTileOverlay.init(URLTemplate: String!)
Declaration
From
init(URLTemplate URLTemplate: String!)
To
init!(URLTemplate URLTemplate: String!)

Modified MKTileOverlayRenderer
Introduction
FromiOS 8.0
ToiOS 7.0

Modified MKTileOverlayRenderer.init(tileOverlay: MKTileOverlay!)
Declaration
From
init(tileOverlay overlay: MKTileOverlay!)
To
init!(tileOverlay overlay: MKTileOverlay!)

Modified MKUserLocation
Introduction
FromiOS 8.0
ToiOS 3.0

Modified MKUserLocation.heading
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MKUserTrackingBarButtonItem
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MKUserTrackingBarButtonItem.init(mapView: MKMapView!)
Declaration
From
init(mapView mapView: MKMapView!)
To
init!(mapView mapView: MKMapView!)

Modified MKUserTrackingMode [enum]
Introduction
FromiOS 8.0
ToiOS 5.0

Modified MKCoordinateForMapPoint(MKMapPoint) -> CLLocationCoordinate2D
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKCoordinateRegionForMapRect(MKMapRect) -> MKCoordinateRegion
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKLaunchOptionsCameraKey
Introduction
FromiOS 8.0
ToiOS 7.1

Modified MKLaunchOptionsDirectionsModeDriving
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKLaunchOptionsDirectionsModeKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKLaunchOptionsDirectionsModeWalking
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKLaunchOptionsMapCenterKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKLaunchOptionsMapSpanKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKLaunchOptionsMapTypeKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKLaunchOptionsShowsTrafficKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified MKMapPointForCoordinate(CLLocationCoordinate2D) -> MKMapPoint
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapPointsPerMeterAtLatitude(CLLocationDegrees) -> Double
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectContainsPoint(MKMapRect, MKMapPoint) -> Bool
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectContainsRect(MKMapRect, MKMapRect) -> Bool
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectDivide(MKMapRect, UnsafeMutablePointer<MKMapRect>, UnsafeMutablePointer<MKMapRect>, Double, CGRectEdge)
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectInset(MKMapRect, Double, Double) -> MKMapRect
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectIntersection(MKMapRect, MKMapRect) -> MKMapRect
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectIntersectsRect(MKMapRect, MKMapRect) -> Bool
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectNull
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectOffset(MKMapRect, Double, Double) -> MKMapRect
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectRemainder(MKMapRect) -> MKMapRect
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectSpans180thMeridian(MKMapRect) -> Bool
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectUnion(MKMapRect, MKMapRect) -> MKMapRect
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapRectWorld
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMapSizeWorld
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMetersBetweenMapPoints(MKMapPoint, MKMapPoint) -> CLLocationDistance
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKMetersPerMapPointAtLatitude(CLLocationDegrees) -> CLLocationDistance
Introduction
FromiOS 8.0
ToiOS 4.0

Modified MKRoadWidthAtZoomScale(MKZoomScale) -> CGFloat
Introduction
FromiOS 8.0
ToiOS 4.0