Files
keyboard/keyBoard/Class/Me/V/KBGenderPickerPopView.h
2025-11-11 15:55:52 +08:00

34 lines
870 B
Objective-C
Raw Permalink 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.

//
// KBGenderPickerPopView.h
// keyBoard
//
// Created by Codex on 2025/11/11.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/// 性别选择弹窗自定义视图(给 LSTPopView 使用)
/// - 使用 UIPickerView 实现上下滑动
/// - Masonry 约束、懒加载、中文注释
@interface KBGenderPickerPopView : UIView
/// 数据源(元素为 NSDictionary包含 key: id, name
@property (nonatomic, copy) NSArray<NSDictionary *> *items;
/// 预选中的 id可为空
@property (nonatomic, copy, nullable) NSString *selectedId;
/// 保存回调,返回选中的字典
@property (nonatomic, copy, nullable) void (^saveHandler)(NSDictionary *selected);
/// 关闭回调
@property (nonatomic, copy, nullable) void (^closeHandler)(void);
/// 将选择器滚动到 selectedId 对应的行
- (void)syncSelection;
@end
NS_ASSUME_NONNULL_END