Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
CloudPhotos (iOS)/CloudPhotos/CloudPhoto.h
/* |
Copyright (C) 2017 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
Object to describe a photo in this app: a wrapper for CKRecord |
*/ |
@import UIKit; |
@import CloudKit; |
@interface CloudPhoto : NSObject |
@property (nonatomic, strong) CKRecord *cloudRecord; |
@property (nonatomic, strong, getter = getPhotoTitle, setter = setPhotoTitle:) NSString *photoTitle; |
@property (nonatomic, strong, getter = getPhotoDate, setter = setPhotoDate:) NSDate *photoDate; |
@property (nonatomic, strong, getter = getPhotoLocation, setter = setPhotoLocation:) CLLocation *photoLocation; |
@property (assign) BOOL isMyPhoto; |
@property (assign) double distanceFromUser; // in kilometers |
- (id)initWithRecord:(CKRecord *)record; |
- (BOOL)isPhotoNearMe; |
- (BOOL)isRecentPhoto; |
- (UIImage *)getPhotoImage; |
- (void)setPhotoImage:(NSURL *)imageURL; |
- (void)photoOwner:(void (^)(NSString *owner))completionHandler; |
@end |
Copyright © 2017 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2017-03-09