// // ServiceagreementViewController.m // jitao // // Created by 罗云飞 on 2017/12/7. // Copyright © 2017年 罗云飞. All rights reserved. // #import "ServiceagreementViewController.h" @interface ServiceagreementViewController (){ NSMutableArray *dataArray; UITableView *newtableView; } @end @implementation ServiceagreementViewController - (void)viewDidLoad { [super viewDidLoad]; [self setNavTitle:@"关于我们"]; [self dataInitialization]; [self loadsView]; // Do any additional setup after loading the view. } - (void)dataInitialization{ dataArray = NewMutableArrayInit; } - (void)loadsView{ UILabel *banben = [UILabel new]; banben.text = @"版本号:"; banben.font = NewFont(fitScreenWidth(14)); [banben setSingleLineAutoResizeWithMaxWidth:0]; [self.view addSubview:banben]; banben.sd_layout .leftSpaceToView(self.view, 15) .heightIs(44) .topSpaceToView(self.view, ViewStartY+10); NSString *currVersion = [NSString getMyApplicationVersion]; UILabel *banbenhao = [UILabel new]; banbenhao.text = currVersion; [banbenhao setSingleLineAutoResizeWithMaxWidth:0]; banbenhao.font = NewFont(fitScreenWidth(14)); [self.view addSubview:banbenhao]; banbenhao.sd_layout .leftSpaceToView(banben, 5) .heightIs(44) .topEqualToView(banben); UILabel *jianjie = [UILabel new]; jianjie.text = @"简介"; jianjie.font = NewFont(fitScreenWidth(14)); [jianjie setSingleLineAutoResizeWithMaxWidth:0]; [self.view addSubview:jianjie]; jianjie.sd_layout .leftEqualToView(banben) .topSpaceToView(banben, 10) .heightIs(44); UILabel *neirong = [UILabel new]; neirong.text = @"公司自2001年成立至今,从事科技服务工作已有16余年,全国设有28家分子公司,办公场地全国5688平米,已服务企业16800家,主要提供技术转移、知识产权运营、政策咨询等系列服务。"; neirong.font = NewFont(fitScreenWidth(14)); neirong.numberOfLines = 0; [self.view addSubview:neirong]; neirong.sd_layout .leftEqualToView(jianjie) .rightSpaceToView(self.view, 15) .topSpaceToView(jianjie, 15) .autoHeightRatio(0); UILabel *lxfs = [UILabel new]; lxfs.text = @"联系方式"; [lxfs setSingleLineAutoResizeWithMaxWidth:0]; lxfs.font = NewFont(fitScreenWidth(14)); [self.view addSubview:lxfs]; lxfs.sd_layout .leftEqualToView(neirong) .heightIs(44) .topSpaceToView(neirong, 10); UILabel *lxdh = [UILabel new]; lxdh.text = @"联系电话:400-8800-962"; lxdh.font = NewFont(fitScreenWidth(14)); [lxdh setSingleLineAutoResizeWithMaxWidth:0]; [self.view addSubview:lxdh]; lxdh.sd_layout .leftEqualToView(lxfs) .heightIs(20) .topSpaceToView(lxfs, 10); UILabel *dz = [UILabel new]; dz.text = @"地址:湖南省长沙市营盘东路19号金山大厦八楼"; dz.font = NewFont(fitScreenWidth(14)); [dz setSingleLineAutoResizeWithMaxWidth:0]; [self.view addSubview:dz]; dz.sd_layout .leftEqualToView(lxfs) .heightIs(20) .topSpaceToView(lxdh, 5); } - (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