24. MKUserLocation
@interface MKUserLocation : NSObject <MKAnnotation> {
@private
MKUserLocationInternal *_internal;
}
// Returns YES if the user's location is being updated.
@property (readonly, nonatomic, getter=isUpdating) BOOL updating;
// Returns nil if the owning MKMapView's showsUserLocation is NO or the user's location has
yet to be determined.
@property (readonly, retain, nonatomic) CLLocation *location;
// Returns nil if not in MKUserTrackingModeFollowWithHeading
@property (readonly, nonatomic, retain) CLHeading *heading NS_AVAILABLE(NA, 5_0);
// The title to be displayed for the user location annotation.
@property (nonatomic, copy) NSString *title;
// The subtitle to be displayed for the user location annotation.
@property (nonatomic, copy) NSString *subtitle;
@end
25. MKAnnotation
@protocol MKAnnotation <NSObject>
// Center latitude and longitude of the annotion view.
// The implementation of this property must be KVO compliant.
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
@optional
// Title and subtitle for use by selection UI.
@property (nonatomic, readonly, copy) NSString *title;
@property (nonatomic, readonly, copy) NSString *subtitle;
// Called as a result of dragging an annotation view.
- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate NS_AVAILABLE(NA, 4_0);
@end