//
//  HWAboutViewController.m
//  双子星云手机
//
//  Created by 余衡武 on 2022/3/25.
//

#import "HWAboutViewController.h"

@interface HWAboutViewController ()

@property (weak, nonatomic) IBOutlet UIView  *header;
@property (weak, nonatomic) IBOutlet UILabel *infoLabel;


@end

@implementation HWAboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [self.header mas_updateConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(NAVIHEIGHT);
    }];
    
    // 版本信息
    NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"];
    NSString *text = [NSString stringWithFormat:@"%@ %@", NSLocalizedString(@"application_version",nil),currentVersion];
    self.infoLabel.text = text;
}

- (IBAction)backBtnClick:(UIButton *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}


@end
