-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathMasterDetailSplitController.m
More file actions
40 lines (28 loc) · 972 Bytes
/
MasterDetailSplitController.m
File metadata and controls
40 lines (28 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// ConcreteSplitController1.m
// SplitSample
//
// Created by slatvick on 3/12/11.
// Copyright 2011 Alterplay. All rights reserved.
//
#import "MasterDetailSplitController.h"
@implementation MasterDetailSplitController
@synthesize masterViewController = _masterViewController;
#pragma mark - View lifecycle
- (void)viewDidLoad {
[super viewDidLoad];
_masterViewController = [[ColorListMasterController alloc] initWithSplit:self];
self.masterViewController.title = @"Master: colors";
[self pushToMasterController:self.masterViewController];
}
- (void)viewDidUnload {
[super viewDidUnload];
_masterViewController = nil;
}
#pragma mark - APSplitViewDelegate events
- (void)navigationController:(UINavigationController*)navigationController popedDetailController:(UIViewController*)popedController {
if ([navigationController isEqual:self.detail]) {
[self.masterViewController colorViewDetailPoped];
}
}
@end