Documentation Archive Developer
Search

MapKit Changes for Objective-C

MapKit

MKAnnotationView.h

MKMapItem.h

MKPlacemark.h

MKPolygon.h

Declaration
From
+ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count
To
+ (instancetype)polygonWithCoordinates:(const CLLocationCoordinate2D *)coords count:(NSUInteger)count

Declaration
From
+ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count interiorPolygons:(NSArray<MKPolygon *> *)interiorPolygons
To
+ (instancetype)polygonWithCoordinates:(const CLLocationCoordinate2D *)coords count:(NSUInteger)count interiorPolygons:(NSArray<MKPolygon *> *)interiorPolygons

Declaration
From
+ (instancetype)polygonWithPoints:(MKMapPoint *)points count:(NSUInteger)count
To
+ (instancetype)polygonWithPoints:(const MKMapPoint *)points count:(NSUInteger)count

Declaration
From
+ (instancetype)polygonWithPoints:(MKMapPoint *)points count:(NSUInteger)count interiorPolygons:(NSArray<MKPolygon *> *)interiorPolygons
To
+ (instancetype)polygonWithPoints:(const MKMapPoint *)points count:(NSUInteger)count interiorPolygons:(NSArray<MKPolygon *> *)interiorPolygons

MKPolyline.h

Declaration
From
+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count
To
+ (instancetype)polylineWithCoordinates:(const CLLocationCoordinate2D *)coords count:(NSUInteger)count

Declaration
From
+ (instancetype)polylineWithPoints:(MKMapPoint *)points count:(NSUInteger)count
To
+ (instancetype)polylineWithPoints:(const MKMapPoint *)points count:(NSUInteger)count

NSUserActivity+MKMapItem.h (Added)

Added NSUserActivity(MKMapItem)