VLCFirstStepsSecondPageViewController.m 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*****************************************************************************
  2. * VLCFirstStepsSecondPageViewController
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013-2014 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan.org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCFirstStepsSecondPageViewController.h"
  13. @interface VLCFirstStepsSecondPageViewController ()
  14. @end
  15. @implementation VLCFirstStepsSecondPageViewController
  16. - (void)viewDidLoad
  17. {
  18. [super viewDidLoad];
  19. NSString *model = [[UIDevice currentDevice] model];
  20. if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
  21. self.descriptionLabel.text = [NSString stringWithFormat:NSLocalizedString(@"FIRST_STEPS_ITUNES_DETAILS", nil), model, model];
  22. else
  23. self.descriptionLabel.text = [[NSString stringWithFormat:NSLocalizedString(@"FIRST_STEPS_ITUNES_DETAILS", nil), model, model] stringByReplacingOccurrencesOfString:@"\n" withString:@"\n\n"];
  24. }
  25. - (void)viewWillAppear:(BOOL)animated
  26. {
  27. [super viewWillAppear:animated];
  28. self.actualContentView.center = self.view.center;
  29. }
  30. - (void)viewDidAppear:(BOOL)animated
  31. {
  32. [super viewDidAppear:animated];
  33. self.actualContentView.center = self.view.center;
  34. }
  35. - (NSString *)pageTitle
  36. {
  37. return NSLocalizedString(@"FIRST_STEPS_ITUNES", nil);
  38. }
  39. - (NSUInteger)page
  40. {
  41. return 2;
  42. }
  43. @end