NSValue MapKit Additions Reference

Framework
/System/Library/Frameworks/MapKit.framework
Availability
Available in iOS 6.0 and later.
Companion guide
Declared in
MKGeometry.h

Overview

This category adds methods to the Foundation framework’s NSValue class. The methods in this category let you represent map-related data using an NSValue object.

Tasks

Creating an NSValue

Accessing Data

Class Methods

valueWithMKCoordinate:

Creates and returns a value object that contains the specified coordinate data.

+ (NSValue *)valueWithMKCoordinate:(CLLocationCoordinate2D)coordinate
Parameters
coordinate

The value for the new object.

Return Value

A new value object that contains the coordinate data.

Availability
  • Available in iOS 6.0 and later.
Declared In
MKGeometry.h

valueWithMKCoordinateSpan:

Creates and returns a value object that contains the specified coordinate span data.

+ (NSValue *)valueWithMKCoordinateSpan:(MKCoordinateSpan)span
Parameters
span

The value for the new object.

Return Value

A new value object that contains the coordinate span data.

Availability
  • Available in iOS 6.0 and later.
Declared In
MKGeometry.h

Instance Methods

MKCoordinateSpanValue

Returns a coordinate span structure representing the data in the receiver.

- (MKCoordinateSpan)MKCoordinateSpanValue
Return Value

A coordinate span structure containing the receiver’s value.

Availability
  • Available in iOS 6.0 and later.
Declared In
MKGeometry.h

MKCoordinateValue

Returns a coordinate structure representing the data in the receiver.

- (CLLocationCoordinate2D)MKCoordinateValue
Return Value

A coordinate structure containing the receiver’s value.

Availability
  • Available in iOS 6.0 and later.
Declared In
MKGeometry.h