File tree Expand file tree Collapse file tree 3 files changed +103
-62
lines changed
Expand file tree Collapse file tree 3 files changed +103
-62
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments