The detail view controller is much simpler than the master view controller, and it focuses on the user interface. It has relatively little to do with iCloud: the master view controller handles the direct interaction with iCloud at the document level, and the WrappedFile class manages the transfer of data to and from iCloud after a document has been selected.

The header file is shown in Listing 15.14

Listing 15.14 DetailViewController.h

#import <UIKit/UIKit.h>#import "JFWrappedDocument.h"                                            //1#import "JFFileRepresentation.h"                                         //2@interface JFDetailViewController : UIViewController<UISplitViewControllerDelegate,

Get Learning iCloud Data Management: A Hands-On Guide to Structuring Data for iOS and OS X now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.