XWShareView.h
1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// XWShareView.h
// CNLiveScioLive
//
// Created by CNLive-zxw on 2018/10/20.
// Copyright © 2018年 CNLive. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TemplateShareButton.h"
NS_ASSUME_NONNULL_BEGIN
@protocol XWShareViewDelegate <NSObject>
@required
- (void)shareBtnClickWithType:(TemplateShareButtonType)type andShareVC:(UIViewController *)shareVC;
@end
@interface XWShareView : UIView
@property (nonatomic,weak) id<XWShareViewDelegate> shareDelegate;
/**
* 自定义初始化方法
*
* @param frame frame
* @param shareTitle reportButton是否隐藏
* @param shareText reportButton是否隐藏
* @param shareImg reportButton是否隐藏
* @param shareUrl reportButton是否隐藏
*
* @return 返回一个XWShareView对象
*/
- (instancetype)initWithFrame:(CGRect)frame ShareImg:(NSString *)shareImg ShareTitle:(NSString *)shareTitle ShareText:(NSString *)shareText ShareUrl:(NSString *)shareUrl;
- (void)show;
- (void)configibutton;
@end
NS_ASSUME_NONNULL_END