创建base
This commit is contained in:
16
keyBoard/Class/Base/VC/BaseNavigationController.h
Normal file
16
keyBoard/Class/Base/VC/BaseNavigationController.h
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// BaseNavigationController.h
|
||||
// keyBoard
|
||||
//
|
||||
// Created by Mac on 2025/10/29.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface BaseNavigationController : UINavigationController
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
28
keyBoard/Class/Base/VC/BaseNavigationController.m
Normal file
28
keyBoard/Class/Base/VC/BaseNavigationController.m
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// BaseNavigationController.m
|
||||
// keyBoard
|
||||
//
|
||||
// Created by Mac on 2025/10/29.
|
||||
//
|
||||
|
||||
#import "BaseNavigationController.h"
|
||||
|
||||
@interface BaseNavigationController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation BaseNavigationController
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
}
|
||||
|
||||
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
|
||||
if (self.viewControllers.count > 0) {
|
||||
viewController.hidesBottomBarWhenPushed = true;
|
||||
}
|
||||
[super pushViewController:viewController animated:animated];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user