123456789101112131415161718192021222324252627282930313233343536373839 |
- #import "RNNSplitViewController.h"
- #import "UIViewController+LayoutProtocol.h"
-
- @implementation RNNSplitViewController
-
- - (void)setViewControllers:(NSArray<__kindof UIViewController *> *)viewControllers {
- [super setViewControllers:viewControllers];
- UIViewController<UISplitViewControllerDelegate>* masterViewController = viewControllers[0];
- self.delegate = masterViewController;
- }
-
- - (UIViewController *)getCurrentChild {
- return self.viewControllers[0];
- }
-
- # pragma mark - UIViewController overrides
-
- - (void)willMoveToParentViewController:(UIViewController *)parent {
- [self.presenter willMoveToParentViewController:parent];
- }
-
- - (UIStatusBarStyle)preferredStatusBarStyle {
- return [self.presenter getStatusBarStyle];
- }
-
- - (BOOL)prefersStatusBarHidden {
- return [self.presenter getStatusBarVisibility];
- }
-
- - (UIInterfaceOrientationMask)supportedInterfaceOrientations {
- return [self.presenter getOrientation];
- }
-
- - (BOOL)hidesBottomBarWhenPushed {
- return [self.presenter hidesBottomBarWhenPushed];
- }
-
- @end
|