Skip to content

Commit 5003c28

Browse files
committed
Add a wrapper around contentViewController.view to fix #78
1 parent 6d7d9d8 commit 5003c28

File tree

3 files changed

+103
-62
lines changed

3 files changed

+103
-62
lines changed

Examples/Simple/RESideMenuExample/DEMOFirstViewController.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,16 @@ - (void)viewDidLoad
3434
[self.view addSubview:imageView];
3535
}
3636

37+
- (void)viewWillAppear:(BOOL)animated
38+
{
39+
[super viewWillAppear:animated];
40+
NSLog(@"DEMOFirstViewController will appear");
41+
}
42+
43+
- (void)viewWillDisappear:(BOOL)animated
44+
{
45+
[super viewWillDisappear:animated];
46+
NSLog(@"DEMOFirstViewController will disappear");
47+
}
48+
3749
@end

Examples/Simple/RESideMenuExample/DEMOSecondViewController.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,16 @@ - (void)pushViewController:(id)sender
4242
[self.navigationController pushViewController:viewController animated:YES];
4343
}
4444

45+
- (void)viewWillAppear:(BOOL)animated
46+
{
47+
[super viewWillAppear:animated];
48+
NSLog(@"DEMOSecondViewController will appear");
49+
}
50+
51+
- (void)viewWillDisappear:(BOOL)animated
52+
{
53+
[super viewWillDisappear:animated];
54+
NSLog(@"DEMOSecondViewController will disappear");
55+
}
56+
4557
@end

0 commit comments

Comments
 (0)