HWAboutViewController.m 890 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // HWAboutViewController.m
  3. // Private-X
  4. //
  5. // Created by 余衡武 on 2022/3/25.
  6. //
  7. #import "HWAboutViewController.h"
  8. @interface HWAboutViewController ()
  9. @property (weak, nonatomic) IBOutlet UIView *header;
  10. @property (weak, nonatomic) IBOutlet UILabel *infoLabel;
  11. @end
  12. @implementation HWAboutViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. [self.header mas_updateConstraints:^(MASConstraintMaker *make) {
  16. make.height.mas_equalTo(NAVIHEIGHT);
  17. }];
  18. // 版本信息
  19. NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"];
  20. NSString *text = [NSString stringWithFormat:@"%@ %@", NSLocalizedString(@"application_version",nil),currentVersion];
  21. self.infoLabel.text = text;
  22. }
  23. - (IBAction)backBtnClick:(UIButton *)sender {
  24. [self.navigationController popViewControllerAnimated:YES];
  25. }
  26. @end