// // About_VC.m // Haishenghai-master // // Created by GG on 2019/1/25. // Copyright © 2019年 Haishenghai intelligence network technology. All rights reserved. // #import "About_VC.h" #define WIDTH [UIScreen mainScreen].bounds.size.width #define HEIGHT [UIScreen mainScreen].bounds.size.height @interface About_VC () @end @implementation About_VC - (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.title = @"关于我们"; self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:60/255.0 green:114/255.0 blue:255/255.0 alpha:1]; [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:18],NSForegroundColorAttributeName:[UIColor whiteColor]}]; UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom]; [backBtn setImage:[UIImage imageNamed:@"hsh_return"] forState:UIControlStateNormal]; backBtn.frame = CGRectMake(0, 0, 44, 44); [backBtn addTarget:self action:@selector(backClick) forControlEvents:UIControlEventTouchUpInside]; backBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:backBtn]; self.view.backgroundColor = [UIColor whiteColor]; /** 设置logo */ UIImageView *logoImageView = [[UIImageView alloc]init]; [logoImageView setImage:[UIImage imageNamed:@"logo"]]; logoImageView.frame = CGRectMake(WIDTH/2-55, HEIGHT/4-45, 110, 110); [self.view addSubview:logoImageView]; UILabel *titleLabel =[[UILabel alloc]init]; titleLabel.frame = CGRectMake(40, HEIGHT/2-60, WIDTH-80, 150); titleLabel.textAlignment = NSTextAlignmentCenter; titleLabel.font = [UIFont systemFontOfSize:16]; [self.view addSubview:titleLabel]; titleLabel.numberOfLines = 0; NSMutableParagraphStyle *style = [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; style.alignment = NSTextAlignmentLeft; [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; //首行缩进 style.firstLineHeadIndent =36.0f; NSAttributedString *attrText = [[NSAttributedString alloc]initWithString:@"海盛海智联APP是一款针对九小场所消防设施进行监控的应用软件,能够协助业主进行警情复核,并能够对烟感探测器、用电安全灭火器等设备进行实时监控和智能化管理。通知业主还能够设置警情发生第一时间收到电话、短信等通知,避免更大的损失发生。"attributes:@{NSParagraphStyleAttributeName: style}]; titleLabel.attributedText =attrText; UILabel *versionLabel =[[UILabel alloc]init]; versionLabel.frame = CGRectMake(WIDTH/2-100, HEIGHT-100, 200, 44); versionLabel.textAlignment = NSTextAlignmentCenter; versionLabel.font = [UIFont systemFontOfSize:16]; versionLabel.textColor = [UIColor blackColor]; [self.view addSubview:versionLabel]; versionLabel.text = @"当前版本号:V1.0"; } -(void)backClick{ [self.navigationController popViewControllerAnimated:YES]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } /* #pragma mark - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. } */ @end