MKShape Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/MapKit.framework
Availability
Available in iOS 4.0 and later.
Companion guide
Declared in
MKShape.h
Related sample code

Overview

The MKShape class is an abstract class that defines the basic properties for all shape-based annotation objects. 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.

Tasks

Accessing the Shape Attributes

Properties

subtitle

The subtitle of the shape annotation.

@property(nonatomic, copy) NSString *subtitle
Discussion

This string is displayed in the callout for the associated annotation view. The default value of this property is nil.

Availability
  • Available in iOS 4.0 and later.
Declared In
MKShape.h

title

The title of the shape annotation.

@property(nonatomic, copy) NSString *title
Discussion

This string is displayed in the callout for the associated annotation view. The default value of this property is nil.

Availability
  • Available in iOS 4.0 and later.
Related Sample Code
Declared In
MKShape.h