VLCBaseInterfaceController.m 884 B

12345678910111213141516171819202122232425262728
  1. /*****************************************************************************
  2. * VLCBaseInterfaceController.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Author: Tobias Conradi <videolan # tobias-conradi.de>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCBaseInterfaceController.h"
  13. @implementation VLCBaseInterfaceController
  14. - (void)awakeWithContext:(id)context {
  15. [super awakeWithContext:context];
  16. [self addMenuItemWithItemIcon:WKMenuItemIconMore title: NSLocalizedString(@"NOW_PLAYING", nil) action:@selector(showNowPlaying:)];
  17. }
  18. - (void)showNowPlaying:(id)sender {
  19. [self presentControllerWithName:@"nowPlaying" context:nil];
  20. }
  21. @end