基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 line
888 B

  1. //
  2. // FNBaseFlutterViewController.m
  3. // Runner
  4. //
  5. // Created by FNUser on 2020/10/28.
  6. //
  7. #import "FNBaseFlutterViewController.h"
  8. @interface FNBaseFlutterViewController ()
  9. @end
  10. @implementation FNBaseFlutterViewController
  11. - (void)viewDidLoad {
  12. [super viewDidLoad];
  13. UIWindow *window = [UIApplication sharedApplication].delegate.window;
  14. UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:self];
  15. window.rootViewController = navController;
  16. navController.navigationBar.hidden = YES;
  17. }
  18. - (void)viewWillDisappear:(BOOL)animated {
  19. [super viewWillDisappear:animated];
  20. [self.navigationController setNavigationBarHidden:NO animated:animated];
  21. }
  22. - (void)viewWillAppear:(BOOL)animated {
  23. [super viewWillAppear:animated];
  24. [self.navigationController setNavigationBarHidden:YES animated:animated];
  25. }
  26. @end