You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
989 B
43 lines
989 B
// |
|
// TFShareView.h |
|
// TFReader |
|
// |
|
// Created by 谢腾飞 on 2020/12/5. |
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved. |
|
// |
|
|
|
#import <UIKit/UIKit.h> |
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
/*** 分享平台 ***/ |
|
typedef NS_ENUM(NSUInteger, TFSharingPlatform) { |
|
|
|
TFSharingPlatformQQ = 0, /** 分享到 QQ */ |
|
TFSharingPlatformWeChat = 1, /** 分享到 微信 */ |
|
TFSharingPlatformQQSpace = 2, /** 分享到 QQ空间 */ |
|
TFSharingPlatformFriendCircle = 3, /** 分享到 朋友圈 */ |
|
}; |
|
|
|
/*** 分享类型 ***/ |
|
typedef NS_ENUM(NSUInteger, TFShareType) { |
|
TFShareTypeBook = 1, /** 分享小说 */ |
|
TFShareTypeComic = 2, /** 分享漫画 */ |
|
TFShareTypeAudio = 3, /** 分享听书 */ |
|
}; |
|
|
|
typedef void(^ClickHandler)(TFSharingPlatform platform); |
|
|
|
@interface TFShareView : UIView |
|
|
|
@property (nonatomic ,copy) ClickHandler clickHandler; |
|
/** |
|
* 显示\隐藏 |
|
*/ |
|
- (void)show; |
|
|
|
- (void)hidden; |
|
|
|
@end |
|
|
|
NS_ASSUME_NONNULL_END
|
|
|