VLCPlaybackNavigationController.m 1018 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*****************************************************************************
  2. * VLCPlaybackNavigationController.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 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 "VLCPlaybackNavigationController.h"
  13. #import "VLCMovieViewController.h"
  14. @interface VLCPlaybackNavigationController ()
  15. @end
  16. @implementation VLCPlaybackNavigationController
  17. - (UIInterfaceOrientationMask)supportedInterfaceOrientations
  18. {
  19. return [self.topViewController supportedInterfaceOrientations];
  20. }
  21. - (BOOL)shouldAutorotate
  22. {
  23. id topVC = self.topViewController;
  24. if ([topVC isKindOfClass:[VLCMovieViewController class]])
  25. return ![(VLCMovieViewController *)topVC rotationIsDisabled];
  26. return YES;
  27. }
  28. @end