PBSelectActionSheet.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // PBOpenLiveTypeSeclectWindow.h
  3. // PBSDK_Example
  4. //
  5. // Created by 陈民 on 2024/12/16.
  6. // Copyright © 2024 uxiume. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface PBSelectActionSheetItem : NSObject
  11. /*
  12. 后期自定义需要
  13. */
  14. @property (nonatomic,strong,nullable)UIImage *itemImage;
  15. @property (nonatomic,strong,nullable)NSString *itemName;
  16. @property (nonatomic,assign)BOOL isSelect;
  17. @property (nonatomic,copy,nullable) void(^actionHandler)(PBSelectActionSheetItem *);
  18. - (instancetype)initWithItemName:(nullable NSString *)itemName
  19. itemName:(nullable UIImage *)itemImage
  20. actionHandler:(nullable void(^)(PBSelectActionSheetItem *))actionHandler;
  21. - (instancetype)initWithItemName:(nullable NSString *)itemName
  22. actionHandler:(nullable void(^)(PBSelectActionSheetItem * ))actionHandler;
  23. @end
  24. @interface PBSelectActionSheet : UIView
  25. //多选
  26. @property (nonatomic,copy,nullable) void(^actionHandler)(NSArray<PBSelectActionSheetItem *> *);
  27. - (instancetype)initWithTitle:(nullable NSString *)title
  28. info:(nullable NSString *)info;
  29. - (instancetype)addActionSheetItem:(PBSelectActionSheetItem *)actionSheetItem;
  30. - (void)show;
  31. - (void)dissmiss;
  32. @end
  33. NS_ASSUME_NONNULL_END