2025-10-27 20:07:37 +08:00
|
|
|
|
//
|
|
|
|
|
|
// KBPermissionViewController.h
|
|
|
|
|
|
// CustomKeyboard
|
|
|
|
|
|
//
|
|
|
|
|
|
// Created by Mac on 2025/10/27.
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
@interface KBPermissionViewController : UIViewController
|
|
|
|
|
|
|
2025-11-03 16:57:24 +08:00
|
|
|
|
/// 点击页面左上角“返回”时回调。用于让调用方(如 KBGuideVC)一起退出等自定义行为。
|
2025-11-03 18:45:06 +08:00
|
|
|
|
/// 注意:避免与按钮 action `onBack` 重名,故命名为 backHandler。
|
|
|
|
|
|
@property (nonatomic, copy, nullable) void (^backHandler)(void);
|
2025-11-03 19:00:47 +08:00
|
|
|
|
@property (nonatomic, strong) UIButton *backButton; // 左上角返回
|
2025-11-03 16:57:24 +08:00
|
|
|
|
|
2025-10-27 20:07:37 +08:00
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|