1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- //
- // AboutViewController.m
- // FirstLink
- //
- // Created by unicode on 14-11-5.
- // Copyright (c) 2014年 FirstLink. All rights reserved.
- //
- #import "AboutViewController.h"
- #import "FLImageHelper.h"
- #import "FKTargetConfigUtil.h"
- @interface AboutViewController ()
- @property (strong, nonatomic) IBOutlet UIImageView *imageView;
- @property (strong, nonatomic) IBOutlet UILabel *versionLabel;
- @property (strong, nonatomic) IBOutlet UILabel *descLabel;
- @end
- @implementation AboutViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view.
-
- self.view.backgroundColor = UIColorFromRGB(0xf4f4f4);
-
- self.imageView.layer.cornerRadius = 6;
- self.imageView.clipsToBounds = YES;
- self.imageView.image = [FLImageHelper getAppIcon];
- self.versionLabel.text = [NSString stringWithFormat:@"v%@", [SystemUtil applicationVersion]];
-
- [self.view addSubview:self.descLabel];
- [self.descLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(self.view).offset(24);
- make.right.equalTo(self.view).offset(-24);
- make.top.equalTo(self.versionLabel.mas_bottom).offset(36);
- }];
- }
- - (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.
- }
- */
- #pragma mark - Property
- - (UILabel *)descLabel {
- if (!_descLabel) {
- _descLabel = [[UILabel alloc] init];
- _descLabel.font = [UIFont systemFontOfSize:14];
- _descLabel.textColor = UIColorFromRGB(0x000000);
- _descLabel.numberOfLines = 0;
- _descLabel.text = [NSString stringWithFormat:@"海外官网代下单,正品直邮不加价!\n\n%@app是一家整合了海外各大官方购物网站,实现海量商品同步在线的时尚海淘购物平台,外文、转运支付障碍一站式解决,全世界的好东西在这里都能轻松买~\n\n一手海外热门资讯应有尽有,全球值得入的好货直邮到手~", [FKTargetConfigUtil appName]];
- }
- return _descLabel;
- }
- @end
|