123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- //
- // AboutVC.m
- // jiaPei
- //
- // Created by apple on 15/11/18.
- // Copyright (c) 2015年 JCZ. All rights reserved.
- //
- #import "AboutVC.h"
- @interface AboutVC ()
- @end
- @implementation AboutVC
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self myInit];
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- }
- -(void)myInit
- {
- [self setTitle:@"关于我们"];
-
- self.view.backgroundColor = [UIColor whiteColor];
-
- UIImageView* iv = [[UIImageView alloc] initWithFrame:CGRectMake(0, kNavOffSet, kSize.width, kSize.height-kNavOffSet)];
- [iv setImage:[UIImage imageNamed:@"about"]];
- [self.view addSubview:iv];
-
- CGFloat x = kSize.width/3.0;
- CGFloat w, h;
- w = h = x;
-
- UIImageView *logoImg = [[UIImageView alloc] initWithFrame:CGRectMake(x, 50, w, h)];
- logoImg.image = [UIImage imageNamed:@"defaultLogo"];
- logoImg.layer.masksToBounds = YES;
- logoImg.layer.cornerRadius = 3;
- [iv addSubview:logoImg];
-
- NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
- // app名称
- NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
- // app版本
- NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
- NSString *str = [NSString stringWithFormat:@"%@(%@)",app_Name,app_Version];
-
- UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(x - 30, 100 + h + 20, w + 60, 50)];
- label.backgroundColor = [UIColor clearColor];
- [label setText:str Font:24 TextColor:COLOR_THEME Alignment:NSTextAlignmentCenter];
- [iv addSubview:label];
- }
- @end
|