// // DepartureController.m // smartRhino // // Created by Android on 2020/1/18. // Copyright © 2020 tederen. All rights reserved. // #import "DepartureController.h" #import "DrawerView.h" @interface DepartureController () @end @implementation DepartureController - (void)viewDidLoad { [super viewDidLoad]; self.fd_prefersNavigationBarHidden = YES; } -(void)back{ if (self.navigationController.viewControllers.count > 1) { [self.navigationController popViewControllerAnimated:YES]; }else{ [self dismissViewControllerAnimated:YES completion:nil]; } } - (void)secondBarButtonItems{ DrawerView *vi = [[DrawerView alloc] initWithFrame:self.view.bounds]; [self.view addSubview:vi]; } - (void)backButtonAction{ [self secondBarButtonItems]; } /* #pragma mark - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. } */ @end