Files
keyboard/keyBoard/Class/Base/VC/BaseNavigationController.h
2025-12-03 16:05:00 +08:00

22 lines
587 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// BaseNavigationController.h
// keyBoard
//
// Created by Mac on 2025/10/29.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface BaseNavigationController : UINavigationController
/// Push 一个 VC如果栈中已存在同 class 的 VC则先移除旧的再 push 新的。
/// 常用于类似“登录/注册”这类会互相跳转的页面,避免堆叠多个相同页面实例。
- (void)kb_pushViewControllerRemovingSameClass:(UIViewController *)viewController
animated:(BOOL)animated;
@end
NS_ASSUME_NONNULL_END