//
//  UCMBaseC.m
//  WMBase
//
//  Created by 王猛 on 2023/5/4.
//

#import "UCMBaseC.h"
#import "TT_GeneralProfile.h"

@interface UCMBaseC ()

@end

@implementation UCMBaseC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor qmui_colorWithHexString:@"#FFFFFF"];
    //config 表示在内部方法有内容
    [self ucm_configNavbar];
    [self ucm_bindvmmodel]; //绑定网络请求
    [self ucm_changedefault];
}
#pragma mark -- 公开方法
-(void)ucm_bindvmmodel{
}
-(void)ucm_changedefault{
    
}

-(void)ucm_configNavbar{
    self.navigationController.navigationBar.hidden = YES;
    [self.view addSubview:self.customNavBar];
    if (self.navigationController.viewControllers.count > 1) {
        self.customNavBar.leftButton.hidden = NO;
        [self.customNavBar.leftButton setImage:[UIImage imageNamed:@"base_back"] forState:UIControlStateNormal];
    }
}

#pragma mark - **************** 调用 ****************
- (void)tool_deletenoti {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}
///隐藏系统 NavBar
- (WRCustomNavigationBar *)customNavBar {
    if (!_customNavBar) {
        _customNavBar = [WRCustomNavigationBar CustomNavigationBar];
        [_customNavBar wr_setBottomLineHidden:YES];
        _customNavBar.titleLabelFont = [UIFont fontWithName:Rob_Medium size:20];
        _customNavBar.titleLabelColor = [UIColor blackColor];
        _customNavBar.barBackgroundColor = [UIColor qmui_colorWithHexString:@"#FFF8F9"];
    }
    return _customNavBar;
}


@end
