DetailViewController

Whether you are arriving at the detail view controller through a navigation interface on iPhone or with a split view controller on iPad, now you have to worry about displaying the data. As noted previously, this is a minimal document that simply contains a text string. The code you need to worry about is simpler than the shared iCloud controller and the master view controller.

DetailViewController.h

First of all you need to update the template for DetailViewController.h, as shown in Listing 13.18.

Listing 13.18 DetailViewController.h

#import <UIKit/UIKit.h>#import "ReportDocument.h"                                               //1@interface DetailViewController : UIViewController  <UISplitViewControllerDelegate ...

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.