An abstract class that defines the basic properties for all shape-based overlay objects.
SDKs
- iOS 4.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.2+
Framework
- Map
Kit
Declaration
@interface MKShape : NSObject
Overview
This class must be subclassed and cannot be used as is. Subclasses are responsible for defining the geometry of the shape and providing an appropriate value for the coordinate property inherited from the MKAnnotation
protocol.
Note
In iOS 5.1 and earlier, the MapKit framework uses the Google Mobile Maps (GMM) service to provide map data. Use of specific classes of this framework (and their associated interfaces) is subject to the Google Mobile Maps terms of service, found at http://code.google.com/apis/maps/iphone/terms.html.