Files
keyboard/keyBoard/Class/Base/VC/BaseViewController.h
2025-12-03 18:02:20 +08:00

35 lines
1.1 KiB
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.

//
// BaseViewController.h
// keyBoard
//
// Created by Mac on 2025/11/7.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface BaseViewController : UIViewController
/// 是否显示自定义导航栏(默认 YES
/// 说明:系统导航栏在 Base 内始终隐藏;
/// - 当该值为 YES显示自定义 navView
/// - 当该值为 NO自定义 navView 隐藏(全屏内容无导航)。
@property (nonatomic, assign) BOOL kb_enableCustomNavBar;
/// 顶部自定义导航栏视图(懒加载)。
@property (nonatomic, strong, readonly) UIView *kb_navView;
/// 自定义导航栏中间标题(懒加载)。
@property (nonatomic, strong, readonly) UILabel *kb_titleLabel;
/// 自定义导航栏左侧返回按钮(懒加载)。
@property (nonatomic, strong, readonly) UIButton *kb_backButton;
/// 自定义导航栏右侧按钮(懒加载,默认 hidden = YES
@property (nonatomic, strong, readonly) UIButton *kb_rightButton;
/// 在当前页面添加“点击空白处收起键盘”的手势。可在需要的 VC 的 viewDidLoad 中调用。
- (void)kb_addTapToDismissKeyboard;
@end
NS_ASSUME_NONNULL_END