//
//  ICBaseViewController.m
//  superCleaner
//
//  Created by Mazy on 2020/7/4.
//  Copyright © 2020 Mazy. All rights reserved.
//

#import "ICBaseViewController.h"

@interface ICBaseViewController ()

@end

@implementation ICBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.view.backgroundColor = UIColor.whiteColor;
    self.edgesForExtendedLayout = UIRectEdgeNone;
}

- (void)setupUI{
    self.view.backgroundColor = kColorWithRGB(249, 249, 249);
    
    UIView * bg = [[UIView alloc] init];
    bg.backgroundColor = [UIColor whiteColor];
    bg.layer.cornerRadius = 16;
    [self.view addSubview:bg];
    [self.view sendSubviewToBack:bg];
    [bg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.view);
        make.left.mas_equalTo(self.view.mas_left).mas_offset(KScaleWidth(6));
        make.right.mas_equalTo(self.view.mas_right).mas_offset(-KScaleWidth(6));
        make.bottom.mas_equalTo(self.view.mas_bottom).mas_offset(-KScaleWidth(20));
    }];
}

- (void)goBack{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
