MapKit Changes
MapKit
MKAnnotation.h
MKAnnotationView.h
Modified MKAnnotationView.annotation
| Declaration | |
|---|---|
| From | @property(nonatomic, retain) id<MKAnnotation> annotation |
| To | @property(nonatomic, strong) id<MKAnnotation> annotation |
Modified MKAnnotationView.image
| Declaration | |
|---|---|
| From | @property(nonatomic, retain) NSImage *image |
| To | @property(nonatomic, strong) NSImage *image |
| Declaration | |
|---|---|
| From | - (id)initWithAnnotation:(id<MKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier |
| To | - (instancetype)initWithAnnotation:(id<MKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier |
| Declaration | |
|---|---|
| From | @property(retain, nonatomic) NSView *leftCalloutAccessoryView |
| To | @property(strong, nonatomic) NSView *leftCalloutAccessoryView |
| Declaration | |
|---|---|
| From | @property(retain, nonatomic) NSView *rightCalloutAccessoryView |
| To | @property(strong, nonatomic) NSView *rightCalloutAccessoryView |
MKCircle.h
| Declaration | |
|---|---|
| From | + (MKCircle *)circleWithCenterCoordinate:(CLLocationCoordinate2D)coord radius:(CLLocationDistance)radius |
| To | + (instancetype)circleWithCenterCoordinate:(CLLocationCoordinate2D)coord radius:(CLLocationDistance)radius |
Modified +[MKCircle circleWithMapRect:]
| Declaration | |
|---|---|
| From | + (MKCircle *)circleWithMapRect:(MKMapRect)mapRect |
| To | + (instancetype)circleWithMapRect:(MKMapRect)mapRect |
MKCircleRenderer.h
Modified -[MKCircleRenderer initWithCircle:]
| Declaration | |
|---|---|
| From | - (id)initWithCircle:(MKCircle *)circle |
| To | - (instancetype)initWithCircle:(MKCircle *)circle |
MKDirections.h
MKDirectionsRequest.h
| Declaration | |
|---|---|
| From | - (id)initWithContentsOfURL:(NSURL *)url |
| To | - (instancetype)initWithContentsOfURL:(NSURL *)url |
MKGeometry.h
Removed -[NSValue MKCoordinateSpanValue]
Removed -[NSValue MKCoordinateValue]
MKLocalSearch.h
Modified -[MKLocalSearch initWithRequest:]
| Declaration | Designated Initializer | |
|---|---|---|
| From | - (id)initWithRequest:(MKLocalSearchRequest *)request | -- |
| To | - (instancetype)initWithRequest:(MKLocalSearchRequest *)request | yes |
MKMapItem.h
Added MKLaunchOptionsCameraKey
Modified -[MKMapItem initWithPlacemark:]
| Declaration | |
|---|---|
| From | - (id)initWithPlacemark:(MKPlacemark *)placemark |
| To | - (instancetype)initWithPlacemark:(MKPlacemark *)placemark |
Modified MKMapItem.placemark
| Declaration | |
|---|---|
| From | @property(nonatomic, readonly, retain) MKPlacemark *placemark |
| To | @property(nonatomic, readonly) MKPlacemark *placemark |
Modified MKMapItem.url
| Declaration | |
|---|---|
| From | @property(nonatomic, retain) NSURL *url |
| To | @property(nonatomic, strong) NSURL *url |
MKMapSnapshotter.h
MKMapView.h
Added MKMapView.showsScale
Modified MKMapView.delegate
| Declaration | |
|---|---|
| From | @property(nonatomic, assign) id<MKMapViewDelegate> delegate |
| To | @property(nonatomic, weak) id<MKMapViewDelegate> delegate |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
| Optional | |
|---|---|
| From | -- |
| To | yes |
MKOverlay.h
Modified -[MKOverlay canReplaceMapContent]
| Optional | |
|---|---|
| From | -- |
| To | yes |
Modified -[MKOverlay intersectsMapRect:]
| Optional | |
|---|---|
| From | -- |
| To | yes |
MKOverlayPathRenderer.h
Modified MKOverlayPathRenderer.fillColor
| Declaration | |
|---|---|
| From | @property(retain) NSColor *fillColor |
| To | @property(strong) NSColor *fillColor |
Modified MKOverlayPathRenderer.strokeColor
| Declaration | |
|---|---|
| From | @property(retain) NSColor *strokeColor |
| To | @property(strong) NSColor *strokeColor |
MKOverlayRenderer.h
| Declaration | Designated Initializer | |
|---|---|---|
| From | - (id)initWithOverlay:(id<MKOverlay>)overlay | -- |
| To | - (instancetype)initWithOverlay:(id<MKOverlay>)overlay | yes |
MKPlacemark.h
| Declaration | |
|---|---|
| From | - (id)initWithCoordinate:(CLLocationCoordinate2D)coordinate addressDictionary:(NSDictionary *)addressDictionary |
| To | - (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate addressDictionary:(NSDictionary *)addressDictionary |
MKPolygon.h
| Declaration | |
|---|---|
| From | + (MKPolygon *)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count |
| To | + (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count |
| Declaration | |
|---|---|
| From | + (MKPolygon *)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygons |
| To | + (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygons |
| Declaration | |
|---|---|
| From | + (MKPolygon *)polygonWithPoints:(MKMapPoint *)points count:(NSUInteger)count |
| To | + (instancetype)polygonWithPoints:(MKMapPoint *)points count:(NSUInteger)count |
| Declaration | |
|---|---|
| From | + (MKPolygon *)polygonWithPoints:(MKMapPoint *)points count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygons |
| To | + (instancetype)polygonWithPoints:(MKMapPoint *)points count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygons |
MKPolygonRenderer.h
| Declaration | |
|---|---|
| From | - (id)initWithPolygon:(MKPolygon *)polygon |
| To | - (instancetype)initWithPolygon:(MKPolygon *)polygon |
MKPolylineRenderer.h
| Declaration | |
|---|---|
| From | - (id)initWithPolyline:(MKPolyline *)polyline |
| To | - (instancetype)initWithPolyline:(MKPolyline *)polyline |
MKTileOverlay.h
| Declaration | Designated Initializer | |
|---|---|---|
| From | - (id)initWithURLTemplate:(NSString *)URLTemplate | -- |
| To | - (instancetype)initWithURLTemplate:(NSString *)URLTemplate | yes |
MKTileOverlayRenderer.h
| Declaration | |
|---|---|
| From | - (id)initWithTileOverlay:(MKTileOverlay *)overlay |
| To | - (instancetype)initWithTileOverlay:(MKTileOverlay *)overlay |
MKUserLocation.h
Modified MKUserLocation.heading
| Declaration | |
|---|---|
| From | @property(readonly, nonatomic, retain) CLHeading *heading |
| To | @property(readonly, nonatomic) CLHeading *heading |
Modified MKUserLocation.location
| Declaration | |
|---|---|
| From | @property(readonly, retain, nonatomic) CLLocation *location |
| To | @property(readonly, nonatomic) CLLocation *location |