Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
PhotoMap/PhotoAnnotation.h
/* |
Copyright (C) 2018 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
A simple model class to display pins representing photos on the map. |
*/ |
@import Foundation; |
@import MapKit; |
@interface PhotoAnnotation : NSObject <MKAnnotation> |
- (id)initWithImagePath:(NSString *)imagePath title:(NSString *)title coordinate:(CLLocationCoordinate2D)coordinate; |
@property (nonatomic, strong) UIImage *image; |
@property (nonatomic, copy) NSString *imagePath; |
@property (nonatomic, copy) NSString *title; |
@property (nonatomic, copy) NSString *subtitle; |
@property (nonatomic) CLLocationCoordinate2D coordinate; |
@property (nonatomic, strong) PhotoAnnotation *clusterAnnotation; |
@property (nonatomic, strong) NSArray *containedAnnotations; |
- (void)updateSubtitleIfNeeded; |
@end |
Copyright © 2018 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2018-04-26