基础组件库
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

FNBaseFlutterViewController.m 888 B

1234567891011121314151617181920212223242526272829303132333435363738
  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