// // HBViewController.m // QinJiuTV // // Created by 秦九 on 2024/4/28. // #import "HBViewController.h" @interface HBViewController () @end @implementation HBViewController - (void)viewDidLoad { [super viewDidLoad]; self.hbd_barTintColor = HBColor.color_080B16; self.view.backgroundColor = HBColor.color_080B16; self.hbd_titleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:UIColor.whiteColor,NSForegroundColorAttributeName, nil]; if (self.presentNavigation) { NSString * navigation_btn_back = @"publics_navigationBar_back"; UIBarButtonItem *leftBtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed: navigation_btn_back renderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStylePlain target:self action:@selector(backController:)]; self.navigationItem.leftBarButtonItem = leftBtn; } } - (void)backController:(UIButton * _Nullable)sender { if (self.presentNavigation) { [self dismissViewControllerAnimated:YES completion:nil]; } else { [self.navigationController popViewControllerAnimated :YES]; } } - (void)dealloc{ NSLog(@"%@ dealloc",self.class); [[NSNotificationCenter defaultCenter]removeObserver:self]; } - (void)didReceiveMemoryWarning { NSLog(@"%@ didReceiveMemoryWarning",self.class); } @end