JLChen
2021-02-03 4715e99a9be1c50d8ec31f594af9ebde18647c94
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
//  UINavigationController+EZOpenSDK.m
//  EZOpenSDKDemo
//
//  Created by DeJohn Dong on 15/11/2.
//  Copyright © 2015年 Ezviz. All rights reserved.
//
 
#import "UINavigationController+EZOpenSDK.h"
#import "UIViewController+EZBackPop.h"
 
@implementation UINavigationController (EZOpenSDK)
 
- (BOOL)shouldAutorotate
{
    return [self ez_shouldAutorotate];
}
 
- (BOOL)ez_shouldAutorotate
{
    UIViewController *topVC = [self.viewControllers lastObject];
    return topVC.isAutorotate;
}
 
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
    return [[self.viewControllers lastObject] supportedInterfaceOrientations];
}
 
@end