ServiceagreementViewController.m 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. //
  2. // ServiceagreementViewController.m
  3. // jitao
  4. //
  5. // Created by 罗云飞 on 2017/12/7.
  6. // Copyright © 2017年 罗云飞. All rights reserved.
  7. //
  8. #import "ServiceagreementViewController.h"
  9. @interface ServiceagreementViewController ()<UITableViewDelegate,UITableViewDataSource>{
  10. NSMutableArray *dataArray;
  11. UITableView *newtableView;
  12. }
  13. @end
  14. @implementation ServiceagreementViewController
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. [self setNavTitle:@"关于我们"];
  18. [self dataInitialization];
  19. [self loadsView];
  20. // Do any additional setup after loading the view.
  21. }
  22. - (void)dataInitialization{
  23. dataArray = NewMutableArrayInit;
  24. }
  25. - (void)loadsView{
  26. UILabel *banben = [UILabel new];
  27. banben.text = @"版本号:";
  28. banben.font = NewFont(fitScreenWidth(14));
  29. [banben setSingleLineAutoResizeWithMaxWidth:0];
  30. [self.view addSubview:banben];
  31. banben.sd_layout
  32. .leftSpaceToView(self.view, 15)
  33. .heightIs(44)
  34. .topSpaceToView(self.view, ViewStartY+10);
  35. NSString *currVersion = [NSString getMyApplicationVersion];
  36. UILabel *banbenhao = [UILabel new];
  37. banbenhao.text = currVersion;
  38. [banbenhao setSingleLineAutoResizeWithMaxWidth:0];
  39. banbenhao.font = NewFont(fitScreenWidth(14));
  40. [self.view addSubview:banbenhao];
  41. banbenhao.sd_layout
  42. .leftSpaceToView(banben, 5)
  43. .heightIs(44)
  44. .topEqualToView(banben);
  45. UILabel *jianjie = [UILabel new];
  46. jianjie.text = @"简介";
  47. jianjie.font = NewFont(fitScreenWidth(14));
  48. [jianjie setSingleLineAutoResizeWithMaxWidth:0];
  49. [self.view addSubview:jianjie];
  50. jianjie.sd_layout
  51. .leftEqualToView(banben)
  52. .topSpaceToView(banben, 10)
  53. .heightIs(44);
  54. UILabel *neirong = [UILabel new];
  55. neirong.text = @"公司自2001年成立至今,从事科技服务工作已有16余年,全国设有28家分子公司,办公场地全国5688平米,已服务企业16800家,主要提供技术转移、知识产权运营、政策咨询等系列服务。";
  56. neirong.font = NewFont(fitScreenWidth(14));
  57. neirong.numberOfLines = 0;
  58. [self.view addSubview:neirong];
  59. neirong.sd_layout
  60. .leftEqualToView(jianjie)
  61. .rightSpaceToView(self.view, 15)
  62. .topSpaceToView(jianjie, 15)
  63. .autoHeightRatio(0);
  64. UILabel *lxfs = [UILabel new];
  65. lxfs.text = @"联系方式";
  66. [lxfs setSingleLineAutoResizeWithMaxWidth:0];
  67. lxfs.font = NewFont(fitScreenWidth(14));
  68. [self.view addSubview:lxfs];
  69. lxfs.sd_layout
  70. .leftEqualToView(neirong)
  71. .heightIs(44)
  72. .topSpaceToView(neirong, 10);
  73. UILabel *lxdh = [UILabel new];
  74. lxdh.text = @"联系电话:400-8800-962";
  75. lxdh.font = NewFont(fitScreenWidth(14));
  76. [lxdh setSingleLineAutoResizeWithMaxWidth:0];
  77. [self.view addSubview:lxdh];
  78. lxdh.sd_layout
  79. .leftEqualToView(lxfs)
  80. .heightIs(20)
  81. .topSpaceToView(lxfs, 10);
  82. UILabel *dz = [UILabel new];
  83. dz.text = @"地址:湖南省长沙市营盘东路19号金山大厦八楼";
  84. dz.font = NewFont(fitScreenWidth(14));
  85. [dz setSingleLineAutoResizeWithMaxWidth:0];
  86. [self.view addSubview:dz];
  87. dz.sd_layout
  88. .leftEqualToView(lxfs)
  89. .heightIs(20)
  90. .topSpaceToView(lxdh, 5);
  91. }
  92. - (void)didReceiveMemoryWarning {
  93. [super didReceiveMemoryWarning];
  94. // Dispose of any resources that can be recreated.
  95. }
  96. /*
  97. #pragma mark - Navigation
  98. // In a storyboard-based application, you will often want to do a little preparation before navigation
  99. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  100. // Get the new view controller using [segue destinationViewController].
  101. // Pass the selected object to the new view controller.
  102. }
  103. */
  104. @end