TemplateShareButton.h
1.11 KB
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
//
// TemplateShareButton.h
// CNLiveScioLive
//
// Created by CNLive-zxw on 2018/10/20.
// Copyright © 2018年 CNLive. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, TemplateShareButtonType) {
TemplateShareButtonTypeWeiBo = 0,//微博
TemplateShareButtonTypeWeiXin = 1,//微信好友
TemplateShareButtonTypePengYouQuan = 2,//微信朋友圈
TemplateShareButtonTypeQQ = 3,//QQ好友
TemplateShareButtonTypeQQZone = 4,//QQ空间
TemplateShareButtonTypeTXWeiBo = 5,//腾讯微博
TemplateShareButtonTypeXLWeiBo = 6,//新浪微博
TemplateShareButtonTypeRenRen = 7,//人人网
TemplateShareButtonTypeJuBao = 8//举报
};
@interface TemplateShareButton : UIButton
/**
* 分享的类型(新浪微博,微信,朋友圈,QQ,QQ空间,腾讯微博,人人,举报)
*/
@property (nonatomic,assign) TemplateShareButtonType shareButtonType;
/**
* 各个渠道的title
*/
@property (nonatomic,strong) NSString *title;
/**
* 各个渠道的图标
*/
@property (nonatomic,strong) NSString *image;
@end
NS_ASSUME_NONNULL_END