55 lines
1.4 KiB
C
55 lines
1.4 KiB
C
|
|
//
|
||
|
|
// QXShareView.h
|
||
|
|
// QXLive
|
||
|
|
//
|
||
|
|
// Created by 启星 on 2025/5/21.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import <UIKit/UIKit.h>
|
||
|
|
#import "QXDynamicModel.h"
|
||
|
|
typedef NS_ENUM(NSInteger) {
|
||
|
|
QXShareViewTypeFind,
|
||
|
|
QXShareViewTypeSharePhoto
|
||
|
|
}QXShareViewType;
|
||
|
|
@class QXShareViewModel;
|
||
|
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
@protocol QXShareViewDelegate <NSObject>
|
||
|
|
|
||
|
|
@optional
|
||
|
|
-(void)didClickShareModel:(QXShareViewModel*)model;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
|
||
|
|
@interface QXShareView : UIView
|
||
|
|
@property (nonatomic,assign)QXShareViewType shareType;
|
||
|
|
@property (nonatomic,weak)id<QXShareViewDelegate>delegate;
|
||
|
|
/// 分享动态时传参
|
||
|
|
@property (nonatomic,strong)QXDynamicModel *dynamicModel;
|
||
|
|
/// 分享图片时传参
|
||
|
|
@property (nonatomic,strong)NSData *imageData;
|
||
|
|
-(void)showInView:(UIView*)view;
|
||
|
|
-(void)hideView;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
@interface QXShareViewContentCell : UICollectionViewCell<UICollectionViewDelegate,UICollectionViewDataSource>
|
||
|
|
@property (nonatomic,strong)UICollectionView *collectionView;
|
||
|
|
@property (nonatomic,strong)NSMutableArray* dataArray;
|
||
|
|
@property (nonatomic,weak)id<QXShareViewDelegate>delegate;
|
||
|
|
@end
|
||
|
|
|
||
|
|
|
||
|
|
@interface QXShareViewCell : UICollectionViewCell
|
||
|
|
@property (nonatomic,strong)UIImageView *imageView;
|
||
|
|
@property (nonatomic,strong)UILabel *titleLabel;
|
||
|
|
@property (nonatomic,strong)QXShareViewModel *model;
|
||
|
|
@end
|
||
|
|
|
||
|
|
@interface QXShareViewModel:NSObject
|
||
|
|
@property (nonatomic,strong)NSString *icon;
|
||
|
|
@property (nonatomic,strong)NSString *name;
|
||
|
|
@property (nonatomic,strong)NSString *Id;
|
||
|
|
@end
|
||
|
|
NS_ASSUME_NONNULL_END
|