| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- //
- // AboutViewController.m
- // Apex Mobile
- //
- // Created by Ray on 14-2-26.
- // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
- //
- #import "AboutViewController.h"
- @interface AboutViewController ()
- @property (strong, nonatomic) IBOutlet UILabel *titleLabel;
- @property (strong, nonatomic) IBOutlet UILabel *verKeyLabel;
- @property (strong, nonatomic) IBOutlet UILabel *verValueLabel;
- @property (strong, nonatomic) IBOutlet UILabel *supportKeyLabel;
- @property (strong, nonatomic) IBOutlet UITextView *supportValueLabel;
- @end
- @implementation AboutViewController
- - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
- {
- self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
- if (self) {
- // Custom initialization
- }
- return self;
- }
- - (BOOL)shouldAutorotate
- {
- return YES;
- }
- - (NSUInteger)supportedInterfaceOrientations
- {
- return UIInterfaceOrientationMaskPortrait;
- }
- - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
- {
- return UIInterfaceOrientationPortrait;
- }
- - (void)viewDidLoad
- {
- [super viewDidLoad];
-
- // if (@available(iOS 11,*)) {
- // self.infoText.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
- // } else {
- // self.automaticallyAdjustsScrollViewInsets = NO;
- // }
-
- NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary];
- NSString* versionNum =[infoDict objectForKey:@"CFBundleVersion"];
- versionNum = [NSString stringWithFormat:@"A%@",versionNum];
-
- // self.infoText.text = [NSString stringWithFormat:NSLocalizedString(@"about_appinfo", nil),versionNum];
- // Do any additional setup after loading the view.
-
- self.titleLabel.text = NSLocalizedString(@"about_title", nil);
- self.verKeyLabel.text = NSLocalizedString(@"about_ver_key", nil);
- self.verValueLabel.text = versionNum;
- self.supportKeyLabel.text = NSLocalizedString(@"about_support_key",nil);
- self.supportValueLabel.text = NSLocalizedString(@"about_support_value", nil);
- }
- - (void)didReceiveMemoryWarning
- {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- @end
|