DepartureController.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // DepartureController.m
  3. // smartRhino
  4. //
  5. // Created by Android on 2020/1/18.
  6. // Copyright © 2020 tederen. All rights reserved.
  7. //
  8. #import "DepartureController.h"
  9. #import "DrawerView.h"
  10. @interface DepartureController ()
  11. @end
  12. @implementation DepartureController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. self.fd_prefersNavigationBarHidden = YES;
  16. }
  17. -(void)back{
  18. if (self.navigationController.viewControllers.count > 1) {
  19. [self.navigationController popViewControllerAnimated:YES];
  20. }else{
  21. [self dismissViewControllerAnimated:YES completion:nil];
  22. }
  23. }
  24. - (void)secondBarButtonItems{
  25. DrawerView *vi = [[DrawerView alloc] initWithFrame:self.view.bounds];
  26. [self.view addSubview:vi];
  27. }
  28. - (void)backButtonAction{
  29. [self secondBarButtonItems];
  30. }
  31. /*
  32. #pragma mark - Navigation
  33. // In a storyboard-based application, you will often want to do a little preparation before navigation
  34. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  35. // Get the new view controller using [segue destinationViewController].
  36. // Pass the selected object to the new view controller.
  37. }
  38. */
  39. @end