/***************************************************************************** * VLCFirstStepsSecondPageViewController * VLC for iOS ***************************************************************************** * Copyright (c) 2013-2014 VideoLAN. All rights reserved. * $Id$ * * Authors: Felix Paul Kühne * * 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