Implementing the Shared iCloud Controller
The shared controller implementation is shown in Listing 18.2. Key lines are identified in the listing, but the details of the implementations have already been covered in Chapters 15 and 16.
#import "SharediCloudController.h"#import "JFFileRepresentation.h"#import "Constants.h"@interface SharediCloudController () //1@property NSMetadataQuery *query;@end@implementation SharediCloudController#pragma mark - initialization-(id)init { if ( self = [super init] ) { [self initializeiCloudAccess]; //2 if (!_documents) _documents = [[NSMutableArray alloc] init]; //3 ...
Get Learning iCloud Data Management: A Hands-On Guide to Structuring Data for iOS and OS X now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.