SPSBPickerViewManager.h 760 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // SPSBPickerViewManager.h
  3. // 我的社保
  4. //
  5. // Created by shanp on 2021/5/14.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <JXHMacro.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef NSString * SPSBPickerViewType;
  11. UIKIT_EXTERN SPSBPickerViewType const SPSBPickerViewTypeMailAddress;
  12. typedef struct SPSBPickerViewResult {
  13. NSString *spsb_showData;
  14. NSString *spsb_uploadData;
  15. } SPSBPickerViewResult;
  16. @interface SPSBPickerViewManager : NSObject
  17. @property (nonatomic, weak) UIViewController *spsb_controller;
  18. - (instancetype)initWithTypes:(NSArray<SPSBPickerViewType> *)types;
  19. - (void)showPickerViewWithType:(SPSBPickerViewType)type defaultValue:(nullable NSString *)defaultValue complete:(void (^)(SPSBPickerViewResult result))complete;
  20. @end
  21. NS_ASSUME_NONNULL_END