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/APLDetailTableViewController.h
/* |
Copyright (C) 2017 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
The detail view controller showing a specific photo. |
*/ |
@import UIKit; |
@import CloudKit; |
@class CloudPhoto; |
@protocol DetailViewControllerDelegate; |
@interface APLDetailTableViewController : UITableViewController |
@property (nonatomic, weak, readwrite) id<DetailViewControllerDelegate> delegate; |
@property (nonatomic, strong) CloudPhoto *photo; |
// called when we receive notification from our App Delegate that the user logged in our out |
- (void)loginUpdate; |
@end |
#pragma mark - |
// protocol used to inform our parent table view controller to update its table if the given photo was added, changed or deleted |
@protocol DetailViewControllerDelegate <NSObject> |
@required |
- (void)detailViewController:(APLDetailTableViewController *)viewController didChangeCloudPhoto:(CloudPhoto *)photo; |
- (void)detailViewController:(APLDetailTableViewController *)viewController didAddCloudPhoto:(CloudPhoto *)photo; |
- (void)detailViewController:(APLDetailTableViewController *)viewController didDeleteCloudPhoto:(CloudPhoto *)photo; |
@end |
Copyright © 2017 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2017-03-09