123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // PBOpenLiveTypeSeclectWindow.h
- // PBSDK_Example
- //
- // Created by 陈民 on 2024/12/16.
- // Copyright © 2024 uxiume. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface PBSelectActionSheetItem : NSObject
- /*
- 后期自定义需要
- */
- @property (nonatomic,strong,nullable)UIImage *itemImage;
- @property (nonatomic,strong,nullable)NSString *itemName;
- @property (nonatomic,assign)BOOL isSelect;
- @property (nonatomic,copy,nullable) void(^actionHandler)(PBSelectActionSheetItem *);
- - (instancetype)initWithItemName:(nullable NSString *)itemName
- itemName:(nullable UIImage *)itemImage
- actionHandler:(nullable void(^)(PBSelectActionSheetItem *))actionHandler;
- - (instancetype)initWithItemName:(nullable NSString *)itemName
- actionHandler:(nullable void(^)(PBSelectActionSheetItem * ))actionHandler;
- @end
- @interface PBSelectActionSheet : UIView
- //多选
- @property (nonatomic,copy,nullable) void(^actionHandler)(NSArray<PBSelectActionSheetItem *> *);
- - (instancetype)initWithTitle:(nullable NSString *)title
- info:(nullable NSString *)info;
- - (instancetype)addActionSheetItem:(PBSelectActionSheetItem *)actionSheetItem;
- - (void)show;
- - (void)dissmiss;
- @end
- NS_ASSUME_NONNULL_END
|