View

The VIEW section of PrepareTVC.m is where most of the action happens. This section mostly consists of table view data source methods and a viewDidLoad method. The code involved is shown in Listing 5.10.

Listing 5.10 PrepareTVC.m: VIEW

#pragma mark - VIEW- (void)viewDidLoad {if (debug==1) {    NSLog(@"Running %@ '%@'", self.class, NSStringFromSelector(_cmd));}    [super viewDidLoad];    [self configureFetch];    [self performFetch];    self.clearConfirmActionSheet.delegate = self;   [[NSNotificationCenter defaultCenter] addObserver:self                                            selector:@selector(performFetch)                                                name:@"SomethingChanged"                                              object:nil]; ...

Get Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications 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.