File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -473,6 +473,8 @@ - (void)_morphMasterViewInAnimated:(BOOL)animated
473473 [self .view addSubview: _masterView];
474474 }
475475
476+ [self .masterViewController viewWillAppear: animated];
477+
476478 _masterView.state = CTSplitViewControllerMasterViewStateMorphedIn;
477479 [self .view bringSubviewToFront: _masterView];
478480
@@ -482,6 +484,7 @@ - (void)_morphMasterViewInAnimated:(BOOL)animated
482484
483485 void (^completionBlock)(BOOL finished) = ^(BOOL finished) {
484486 _detailsView.userInteractionEnabled = NO ;
487+ [self .masterViewController viewDidAppear: animated];
485488 };
486489
487490 if (animated) {
@@ -510,8 +513,11 @@ - (void)_morphMasterViewOutAnimated:(BOOL)animated
510513 void (^completionBlock)(BOOL finished) = ^(BOOL finished) {
511514 [self _unloadMasterView ];
512515 _detailsView.userInteractionEnabled = YES ;
516+ [self .masterViewController viewDidDisappear: animated];
513517 };
514518
519+ [self .masterViewController viewWillDisappear: animated];
520+
515521 if (animated) {
516522 [UIView animateWithDuration: 0 .25f animations: animationBlock completion: completionBlock];
517523 } else {
You can’t perform that action at this time.
0 commit comments