Created
March 5, 2015 02:47
-
-
Save mrjeremyt/ff5206b7882d6ae1b04f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)splitViewController:(UISplitViewController *)splitViewController | |
collapseSecondaryViewController:(UIViewController *)secondaryViewController | |
ontoPrimaryViewController:(UIViewController *)primaryViewController { | |
if ([secondaryViewController isKindOfClass:[UINavigationController class]] | |
&& [[(UINavigationController *)secondaryViewController topViewController] isKindOfClass:[ViewController class]] | |
&& ([(ViewController *)[(UINavigationController *)secondaryViewController topViewController] pm] == nil)) { | |
// Return YES to indicate that we have handled the collapse by doing nothing; the secondary controller will be discarded. | |
return YES; | |
} else { | |
return NO; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment