1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*****************************************************************************
- * VLCFirstStepsSecondPageViewController
- * VLC for iOS
- *****************************************************************************
- * Copyright (c) 2013-2014 VideoLAN. All rights reserved.
- * $Id$
- *
- * Authors: Felix Paul Kühne <fkuehne # videolan.org>
- *
- * Refer to the COPYING file of the official project for license.
- *****************************************************************************/
- #import "VLCFirstStepsSecondPageViewController.h"
- @interface VLCFirstStepsSecondPageViewController ()
- @end
- @implementation VLCFirstStepsSecondPageViewController
- - (void)viewDidLoad
- {
- [super viewDidLoad];
- NSString *model = [[UIDevice currentDevice] model];
- if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
- self.descriptionLabel.text = [NSString stringWithFormat:NSLocalizedString(@"FIRST_STEPS_ITUNES_DETAILS", nil), model, model];
- else
- self.descriptionLabel.text = [[NSString stringWithFormat:NSLocalizedString(@"FIRST_STEPS_ITUNES_DETAILS", nil), model, model] stringByReplacingOccurrencesOfString:@"\n" withString:@"\n\n"];
- }
- - (void)viewWillAppear:(BOOL)animated
- {
- [super viewWillAppear:animated];
- self.actualContentView.center = self.view.center;
- }
- - (void)viewDidAppear:(BOOL)animated
- {
- [super viewDidAppear:animated];
- self.actualContentView.center = self.view.center;
- }
- - (NSString *)pageTitle
- {
- return NSLocalizedString(@"FIRST_STEPS_ITUNES", nil);
- }
- - (NSUInteger)page
- {
- return 2;
- }
- @end
|