1234567891011121314151617181920212223242526272829303132333435 |
- //
- // SPSBPickerView.h
- // 我的社保
- //
- // Created by shanp on 2021/5/14.
- //
- #import <UIKit/UIKit.h>
- @class SPSBPickerView;
- NS_ASSUME_NONNULL_BEGIN
- typedef NSArray<NSArray<NSString *> *> SPSBPickerViewArray;
- @protocol SPSBPickerViewDelegate <NSObject>
- - (void)pickerView:(SPSBPickerView *)pickerView didChoseRow:(NSInteger)row inComponent:(NSInteger)component;
- @end
- @interface SPSBPickerView : UIView
- @property (nonatomic, weak) id<SPSBPickerViewDelegate> spsb_pickerViewDelegate;
- @property (nonatomic, readonly, strong) NSArray *spsb_choseArray;
- @property (nonatomic, strong) void (^spsb_clickButton)(bool isConfirm);
- - (instancetype)initWithData:(SPSBPickerViewArray *)data;
- - (void)reloadViewWithData:(SPSBPickerViewArray *)data;
- - (void)chooseRow:(NSInteger)row inComponent:(NSInteger)component animated:(bool)animated;
- - (NSInteger)choseRowInComponent:(NSInteger)component;
- @end
- NS_ASSUME_NONNULL_END
|