RootNavigationController.m 721 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // RootNavigationController.m
  3. // RA Image
  4. //
  5. // Created by Jack on 2017/5/5.
  6. // Copyright © 2017年 USAI. All rights reserved.
  7. //
  8. #import "RootNavigationController.h"
  9. #import "PhotoPreviewController.h"
  10. @interface RootNavigationController ()
  11. @end
  12. @implementation RootNavigationController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. // Do any additional setup after loading the view.
  16. }
  17. - (void)didReceiveMemoryWarning {
  18. [super didReceiveMemoryWarning];
  19. // Dispose of any resources that can be recreated.
  20. }
  21. - (BOOL)shouldAutorotate {
  22. if ([self.topViewController isKindOfClass:[PhotoPreviewController class]]) { // 图片预览保持竖屏
  23. return NO;
  24. }
  25. return YES;
  26. }
  27. @end