JLChen
2021-05-18 a869383e163a18cdedcf587383c1eca043129754
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
31
32
33
34
35
36
37
38
39
40
41
42
//
//  Copyright © 2019 jm. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
NS_ASSUME_NONNULL_BEGIN
 
@interface UIViewController (Base)
 
/**
 *  是否在导航栈里面
 *
 *  @return 在,返回YES;不在,返回NO
 */
- (BOOL)isInNavigationStack;
 
/**
 *  是否在导航栈的最顶端
 */
- (BOOL)isTopController;
 
/**
 是否旋转锁定🔐
 */
@property (nonatomic, assign) BOOL isRotateLocked;
 
- (void)lockRotate;
 
- (void)unlockRotate;
 
/**
 通过class类pop到指定的层级,从导航栈从前往后
 
 @param cls 类名
 @return 返回成功YES
 */
- (BOOL)dh_popToContollerByClass:(Class)cls;
 
@end
 
NS_ASSUME_NONNULL_END