VLCFirstStepsSecondPageViewController.m 1.53 KB
Newer Older
1
/*****************************************************************************
2
 * VLCFirstStepsSecondPageViewController
3 4
 * VLC for iOS
 *****************************************************************************
5
 * Copyright (c) 2013-2014 VideoLAN. All rights reserved.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 * $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];

25
    NSString *model = [[UIDevice currentDevice] model];
26 27

    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
28
        self.descriptionLabel.text = [NSString stringWithFormat:NSLocalizedString(@"FIRST_STEPS_ITUNES_DETAILS", nil), model, model];
29
    else
30
        self.descriptionLabel.text = [[NSString stringWithFormat:NSLocalizedString(@"FIRST_STEPS_ITUNES_DETAILS", nil), model, model] stringByReplacingOccurrencesOfString:@"\n" withString:@"\n\n"];
31 32
}

33 34
- (void)viewWillAppear:(BOOL)animated
{
Marc's avatar
Marc committed
35
    [super viewWillAppear:animated];
36 37 38 39 40
    self.actualContentView.center = self.view.center;
}

- (void)viewDidAppear:(BOOL)animated
{
Marc's avatar
Marc committed
41
    [super viewDidAppear:animated];
42 43 44
    self.actualContentView.center = self.view.center;
}

45 46
- (NSString *)pageTitle
{
47
    return NSLocalizedString(@"FIRST_STEPS_ITUNES", nil);
48 49 50 51 52 53 54 55
}

- (NSUInteger)page
{
    return 2;
}

@end