Skip to content

Commit c8c49ea

Browse files
improves appearance methods
1 parent 4b95d66 commit c8c49ea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CTSplitViewController/CTSplitViewController.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)