更换项目
This commit is contained in:
29
YuMi/CustomUI/ShareView/XPShareView.h
Normal file
29
YuMi/CustomUI/ShareView/XPShareView.h
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// YMShareView.h
|
||||
// YMRoomMoudle
|
||||
//
|
||||
// Created by YUMI on 2022/9/2.
|
||||
// Copyright © 2023 YUMI. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "XPShareItem.h"
|
||||
#import "XPShareInfoModel.h"
|
||||
|
||||
@class XPShareView;
|
||||
@protocol XCShareViewDelegate <NSObject>
|
||||
///点了取消分享
|
||||
- (void)shareViewDidClickCancel:(XPShareView *)shareView;
|
||||
///分享成功
|
||||
- (void)shareView:(XPShareView *)shareView didSuccess:(XPShareInfoModel *)shareInfo;
|
||||
///分享失败
|
||||
- (void)shareView:(XPShareView *)shareView shareFail:(NSString *)message;
|
||||
@end;
|
||||
|
||||
@interface XPShareView : UIView
|
||||
|
||||
@property (nonatomic, weak) id<XCShareViewDelegate> delegate;
|
||||
|
||||
- (instancetype)initWithItems:(NSArray<XPShareItem *> *)items itemSize:(CGSize)itemSize shareInfo:(XPShareInfoModel *)shareInfo;
|
||||
|
||||
@end
|
Reference in New Issue
Block a user