12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- //
- // 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)];
- [iv setImage:[UIImage imageNamed:@"about"]];
- [self.view addSubview:iv];
-
- CGFloat x = kSize.width/3.0;
- CGFloat y = 40;
- CGFloat w, h;
- w = h = x;
-
- UIImageView *logoImg = [[UIImageView alloc] initWithFrame:CGRectMake(x, y, w, h)];
- logoImg.image = [UIImage imageNamed:@"defaultLogo"];
- logoImg.layer.masksToBounds = YES;
- logoImg.layer.cornerRadius = 5;
- [self.view 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, y + h + 0, w + 60, 50)];
- label.backgroundColor = [UIColor clearColor];
- [label setText:str Font:24 TextColor:RGB_COLOR(17, 101, 120) Alignment:NSTextAlignmentCenter];
- [self.view addSubview:label];
- }
- @end
|