react-native-navigation的迁移库

RNNSplitViewController.m 556B

123456789101112131415161718192021
  1. #import "RNNSplitViewController.h"
  2. #import "UIViewController+LayoutProtocol.h"
  3. @implementation RNNSplitViewController
  4. - (void)bindChildViewControllers:(NSArray<UIViewController<RNNLayoutProtocol> *> *)viewControllers {
  5. [self setViewControllers:viewControllers];
  6. UIViewController<UISplitViewControllerDelegate>* masterViewController = viewControllers[0];
  7. self.delegate = masterViewController;
  8. }
  9. -(void)viewWillAppear:(BOOL)animated{
  10. [super viewWillAppear:animated];
  11. }
  12. - (UIViewController *)getCurrentChild {
  13. return self.viewControllers[0];
  14. }
  15. @end