Skip to content

Commit

Permalink
注释
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLice committed Sep 27, 2019
1 parent 35c4666 commit 1292c9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions QMUIKit/UIKitExtensions/UIViewController+QMUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ extern NSString *const QMUIPrecedingAppSizeUserInfoKey;
extern NSString *const QMUIFollowingAppSizeUserInfoKey;

typedef NS_OPTIONS(NSUInteger, QMUIViewControllerVisibleState) {
QMUIViewControllerUnknow = 1 << 0, /// 初始化完成但尚未触发 viewDidLoad
QMUIViewControllerViewDidLoad = 1 << 1, /// 触发了 viewDidLoad
QMUIViewControllerWillAppear = 1 << 2, /// 触发了 viewWillAppear
QMUIViewControllerDidAppear = 1 << 3, /// 触发了 viewDidAppear
QMUIViewControllerWillDisappear = 1 << 4, /// 触发了 viewWillDisappear
QMUIViewControllerDidDisappear = 1 << 5, /// 触发了 viewDidDisappear
QMUIViewControllerUnknow = 1 << 0, // 初始化完成但尚未触发 viewDidLoad
QMUIViewControllerViewDidLoad = 1 << 1, // 触发了 viewDidLoad
QMUIViewControllerWillAppear = 1 << 2, // 触发了 viewWillAppear
QMUIViewControllerDidAppear = 1 << 3, // 触发了 viewDidAppear
QMUIViewControllerWillDisappear = 1 << 4, // 触发了 viewWillDisappear
QMUIViewControllerDidDisappear = 1 << 5, // 触发了 viewDidDisappear

QMUIViewControllerVisible = QMUIViewControllerWillAppear | QMUIViewControllerDidAppear,// 表示是否处于可视范围,判断时请用 & 运算,例如 qmui_visibleState & QMUIViewControllerVisible
};
Expand Down

0 comments on commit 1292c9b

Please sign in to comment.