Sin descripción

AboutViewController.m 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // AboutViewController.m
  3. // FirstLink
  4. //
  5. // Created by unicode on 14-11-5.
  6. // Copyright (c) 2014年 FirstLink. All rights reserved.
  7. //
  8. #import "AboutViewController.h"
  9. #import "FLImageHelper.h"
  10. #import "FKTargetConfigUtil.h"
  11. @interface AboutViewController ()
  12. @property (strong, nonatomic) IBOutlet UIImageView *imageView;
  13. @property (strong, nonatomic) IBOutlet UILabel *versionLabel;
  14. @property (strong, nonatomic) IBOutlet UILabel *descLabel;
  15. @end
  16. @implementation AboutViewController
  17. - (void)viewDidLoad {
  18. [super viewDidLoad];
  19. // Do any additional setup after loading the view.
  20. self.view.backgroundColor = UIColorFromRGB(0xf4f4f4);
  21. self.imageView.layer.cornerRadius = 6;
  22. self.imageView.clipsToBounds = YES;
  23. self.imageView.image = [FLImageHelper getAppIcon];
  24. self.versionLabel.text = [NSString stringWithFormat:@"v%@", [SystemUtil applicationVersion]];
  25. [self.view addSubview:self.descLabel];
  26. [self.descLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  27. make.left.equalTo(self.view).offset(24);
  28. make.right.equalTo(self.view).offset(-24);
  29. make.top.equalTo(self.versionLabel.mas_bottom).offset(36);
  30. }];
  31. }
  32. - (void)didReceiveMemoryWarning {
  33. [super didReceiveMemoryWarning];
  34. // Dispose of any resources that can be recreated.
  35. }
  36. /*
  37. #pragma mark - Navigation
  38. // In a storyboard-based application, you will often want to do a little preparation before navigation
  39. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  40. // Get the new view controller using [segue destinationViewController].
  41. // Pass the selected object to the new view controller.
  42. }
  43. */
  44. #pragma mark - Property
  45. - (UILabel *)descLabel {
  46. if (!_descLabel) {
  47. _descLabel = [[UILabel alloc] init];
  48. _descLabel.font = [UIFont systemFontOfSize:14];
  49. _descLabel.textColor = UIColorFromRGB(0x000000);
  50. _descLabel.numberOfLines = 0;
  51. _descLabel.text = [NSString stringWithFormat:@"海外官网代下单,正品直邮不加价!\n\n%@app是一家整合了海外各大官方购物网站,实现海量商品同步在线的时尚海淘购物平台,外文、转运支付障碍一站式解决,全世界的好东西在这里都能轻松买~\n\n一手海外热门资讯应有尽有,全球值得入的好货直邮到手~", [FKTargetConfigUtil appName]];
  52. }
  53. return _descLabel;
  54. }
  55. @end