SPSBPickerView.h 922 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // SPSBPickerView.h
  3. // 我的社保
  4. //
  5. // Created by shanp on 2021/5/14.
  6. //
  7. #import <UIKit/UIKit.h>
  8. @class SPSBPickerView;
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef NSArray<NSArray<NSString *> *> SPSBPickerViewArray;
  11. @protocol SPSBPickerViewDelegate <NSObject>
  12. - (void)pickerView:(SPSBPickerView *)pickerView didChoseRow:(NSInteger)row inComponent:(NSInteger)component;
  13. @end
  14. @interface SPSBPickerView : UIView
  15. @property (nonatomic, weak) id<SPSBPickerViewDelegate> spsb_pickerViewDelegate;
  16. @property (nonatomic, readonly, strong) NSArray *spsb_choseArray;
  17. @property (nonatomic, strong) void (^spsb_clickButton)(bool isConfirm);
  18. - (instancetype)initWithData:(SPSBPickerViewArray *)data;
  19. - (void)reloadViewWithData:(SPSBPickerViewArray *)data;
  20. - (void)chooseRow:(NSInteger)row inComponent:(NSInteger)component animated:(bool)animated;
  21. - (NSInteger)choseRowInComponent:(NSInteger)component;
  22. @end
  23. NS_ASSUME_NONNULL_END