123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // VLCAboutViewController.m
- // AspenProject
- //
- // Created by Felix Paul Kühne on 07.04.13.
- // Copyright (c) 2013 VideoLAN. All rights reserved.
- //
- #import "VLCAboutViewController.h"
- @interface VLCAboutViewController ()
- @end
- @implementation VLCAboutViewController
- - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
- {
- self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
- return self;
- }
- - (void)viewDidLoad
- {
- [super viewDidLoad];
- self.textContents.text = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"About Contents" ofType:@"txt"] encoding:NSUTF8StringEncoding error:nil];
- self.aspenVersion.text = [NSString stringWithFormat:@"Version: %@", [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]];
- self.vlckitVersion.text = [NSString stringWithFormat:@"Based on:\n%@",[[VLCLibrary sharedLibrary] version]];
- }
- - (void)viewWillAppear:(BOOL)animated
- {
- [self.navigationController setNavigationBarHidden:YES animated:NO];
- if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
- [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
- [super viewWillAppear:animated];
- }
- - (void)viewWillDisappear:(BOOL)animated
- {
- [self.navigationController setNavigationBarHidden:NO animated:YES];
- [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
- [super viewWillDisappear:animated];
- }
- - (IBAction)dismiss:(id)sender
- {
- [self.navigationController popViewControllerAnimated:YES];
- }
- @end
|