react-native-navigation的迁移库

TopBarPresenterCreator.m 457B

123456789101112131415
  1. #import "TopBarPresenterCreator.h"
  2. #import "TopBarAppearancePresenter.h"
  3. @implementation TopBarPresenterCreator
  4. + (TopBarPresenter *)createWithBoundedNavigationController:(UINavigationController *)navigationController {
  5. if (@available(iOS 13.0, *)) {
  6. return [[TopBarAppearancePresenter alloc] initWithNavigationController:navigationController];
  7. } else {
  8. return [[TopBarPresenter alloc] initWithNavigationController:navigationController];
  9. }
  10. }
  11. @end