UIViewController+NavRegister.h 858 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // UIViewController+NavRegister.h
  3. // PBSDK
  4. //
  5. // Created by LStar on 2025/1/16.
  6. //
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface UIViewController (NavRegister)
  10. /**
  11. 需要自动隐藏NavigationBar 默认是no
  12. */
  13. @property(assign,nonatomic)BOOL hiddenNavigationBar;
  14. /*
  15. 需要用于单独修改某个视图控制器状态栏的颜色
  16. */
  17. @property(assign,nonatomic)BOOL transformStatusBarStyle;
  18. ///当页面进入堆栈的时候是需要被移除的
  19. @property (nonatomic, assign) BOOL isNeedToClosed;
  20. - (void)closeCurrentAndPushTo:(UIViewController *)nextVC;
  21. /// 移除所有需要关闭的vc
  22. /// @param nextVC 需要跳转的下一个vc
  23. /// @param animated 动画
  24. - (void)removeAllThatNeedToBeClosedAndPushTo:(UIViewController *)nextVC animated:(BOOL)animated;
  25. ///返回上一蹭页面
  26. - (void)back;
  27. @end
  28. NS_ASSUME_NONNULL_END