VLCEmptyLibraryView.m 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*****************************************************************************
  2. * VLCEmptyLibraryView.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2018 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Mike JS. Choi <mkchoi212 # icloud.com>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import <Foundation/Foundation.h>
  13. #import "VLCEmptyLibraryView.h"
  14. #import "VLCFirstStepsViewController.h"
  15. @implementation VLCEmptyLibraryView
  16. - (void)awakeFromNib
  17. {
  18. _emptyLibraryLabel.text = NSLocalizedString(@"EMPTY_LIBRARY", nil);
  19. _emptyLibraryLongDescriptionLabel.text = NSLocalizedString(@"EMPTY_LIBRARY_LONG", nil);
  20. [_learnMoreButton setTitle:NSLocalizedString(@"BUTTON_LEARN_MORE", nil) forState:UIControlStateNormal];
  21. [super awakeFromNib];
  22. }
  23. - (IBAction)learnMore:(id)sender
  24. {
  25. UIViewController *firstStepsVC = [[VLCFirstStepsViewController alloc] initWithNibName:nil bundle:nil];
  26. UINavigationController *navCon = [[UINavigationController alloc] initWithRootViewController:firstStepsVC];
  27. navCon.modalPresentationStyle = UIModalPresentationFormSheet;
  28. [self.window.rootViewController presentViewController:navCon animated:YES completion:nil];
  29. }
  30. @end