VLCFirstStepsSixthPageViewController.m 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*****************************************************************************
  2. * VLCFirstStepsSixthPageViewController.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013 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 "VLCFirstStepsSixthPageViewController.h"
  13. @interface VLCFirstStepsSixthPageViewController ()
  14. @end
  15. @implementation VLCFirstStepsSixthPageViewController
  16. - (void)viewDidLoad
  17. {
  18. [super viewDidLoad];
  19. if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
  20. self.flossDescriptionLabel.text = NSLocalizedString(@"FIRST_STEPS_FLOSS", nil);
  21. else
  22. self.flossDescriptionLabel.text = [NSLocalizedString(@"FIRST_STEPS_FLOSS", nil) stringByReplacingOccurrencesOfString:@"\n" withString:@"\n\n"];
  23. [self.learnMoreButton setTitle:NSLocalizedString(@"BUTTON_LEARN_MORE", nil) forState:UIControlStateNormal];
  24. }
  25. - (NSString *)pageTitle
  26. {
  27. return @"VLC";
  28. }
  29. - (NSUInteger)page
  30. {
  31. return 6;
  32. }
  33. - (IBAction)learnMore:(id)sender
  34. {
  35. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.videolan.org/contribute.html"]];
  36. }
  37. @end