File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -438,10 +438,6 @@ - (void)_hideMasterViewControllerAnimated:(BOOL)animated
438438
439439- (void )_showMasterViewControllerAnimated : (BOOL )animated
440440{
441- if (self.isMasterViewVisible ) {
442- return ;
443- }
444-
445441 if (!self.isMasterViewLoaded ) {
446442 [self _loadMasterView ];
447443
@@ -457,6 +453,7 @@ - (void)_showMasterViewControllerAnimated:(BOOL)animated
457453 void (^completionBlock)(BOOL finished) = ^(BOOL finished) {
458454 [self .masterViewController viewDidAppear: animated];
459455
456+ _detailsView.userInteractionEnabled = YES ;
460457 _masterView.state = CTSplitViewControllerMasterViewStateVisible;
461458 };
462459
@@ -637,9 +634,13 @@ @implementation UIViewController (CTSplitViewController)
637634
638635- (CTSplitViewController *)CTSplitViewController
639636{
637+ if ([UIDevice currentDevice ].systemVersion .floatValue < 5 .0f ) {
638+ return nil ;
639+ }
640+
640641 UIViewController *parentViewController = self.parentViewController ;
641642
642- while (![parentViewController isKindOfClass: [CTSplitViewController class ]]) {
643+ while (parentViewController && ![parentViewController isKindOfClass: [CTSplitViewController class ]]) {
643644 parentViewController = parentViewController.parentViewController ;
644645 }
645646
You can’t perform that action at this time.
0 commit comments