2023-01-03 22:13:59 +08:00
|
|
|
//
|
|
|
|
// MopShareView.h
|
|
|
|
// mop
|
|
|
|
//
|
|
|
|
// Created by 王兆耀 on 2023/1/2.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
typedef void (^MOPshareBottomViewTypeBlock)(NSString *type);
|
|
|
|
|
|
|
|
@interface MopShareView : UIView
|
2023-01-05 18:47:26 +08:00
|
|
|
@property (nonatomic, copy) MOPshareBottomViewTypeBlock didSelcetTypeBlock;
|
2023-01-03 22:13:59 +08:00
|
|
|
@property (nonatomic, strong) UIImage *image;
|
2023-01-05 18:47:26 +08:00
|
|
|
@property (nonatomic, strong) NSDictionary *dataDic;
|
2023-01-03 22:13:59 +08:00
|
|
|
+ (instancetype)viewWithData:(NSDictionary *)data;
|
|
|
|
- (void)show;
|
|
|
|
- (void)dismiss;
|
|
|
|
@end
|
|
|
|
|
2023-01-05 18:47:26 +08:00
|
|
|
|
|
|
|
@class MOPshareBottomViewCell;
|
|
|
|
|
|
|
|
@protocol MOPCellClickDelegate <NSObject>
|
|
|
|
- (void)iconBtnDidClick:(MOPshareBottomViewCell *)cell;
|
|
|
|
@end
|
|
|
|
|
2023-01-03 22:13:59 +08:00
|
|
|
@interface MOPshareBottomViewCell : UICollectionViewCell
|
2023-01-05 18:47:26 +08:00
|
|
|
@property (nonatomic, strong) NSString *type;
|
|
|
|
@property (nonatomic, strong) UIButton *imageButton;
|
|
|
|
@property (nonatomic, strong) UILabel *label;
|
|
|
|
@property (nonatomic, weak) id<MOPCellClickDelegate> delegate;
|
2023-01-03 22:13:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|