Skip to content

Commit b4ed794

Browse files
author
tigerwf
committed
update
update
1 parent dc1406d commit b4ed794

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+932
-67
lines changed

WFZhihuDaily.xcodeproj/project.pbxproj

Lines changed: 72 additions & 34 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// WFShareButton.h
3+
// WFZhihuDaily
4+
//
5+
// Created by xiupintech on 16/1/11.
6+
// Copyright © 2016年 xiupintech. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface WFShareButton : UIButton
12+
13+
@property (nonatomic,assign) SharePlatform platform;
14+
15+
@end
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// WFShareButton.m
3+
// WFZhihuDaily
4+
//
5+
// Created by xiupintech on 16/1/11.
6+
// Copyright © 2016年 xiupintech. All rights reserved.
7+
//
8+
9+
#import "WFShareButton.h"
10+
11+
@implementation WFShareButton
12+
13+
/*
14+
// Only override drawRect: if you perform custom drawing.
15+
// An empty implementation adversely affects performance during animation.
16+
- (void)drawRect:(CGRect)rect {
17+
// Drawing code
18+
}
19+
*/
20+
21+
@end
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
//
2+
// WFSharePanelView.h
3+
// WFZhihuDaily
4+
//
5+
// Created by xiupintech on 16/1/11.
6+
// Copyright © 2016年 xiupintech. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
UIKIT_EXTERN NSString * const WFSharePlatformWeChat; //微信好友
12+
UIKIT_EXTERN NSString * const WFSharePlatformWeChatFriends; //微信朋友圈
13+
UIKIT_EXTERN NSString * const WFSharePlatformSinaWeibo; // 新浪微博
14+
UIKIT_EXTERN NSString * const WFSharePlatformQQ; // qq
15+
UIKIT_EXTERN NSString * const WFSharePlatformCopyLink; // 复制链接
16+
UIKIT_EXTERN NSString * const WFSharePlatformMail; // 邮件
17+
UIKIT_EXTERN NSString * const WFSharePlatformYouDao; // 有道云
18+
UIKIT_EXTERN NSString * const WFSharePlatformYinXiang;//印象笔记
19+
UIKIT_EXTERN NSString * const WFSharePlatformTencentWeibo;//腾讯微博
20+
UIKIT_EXTERN NSString * const WFSharePlatformMessage;//信息
21+
UIKIT_EXTERN NSString * const WFSharePlatformInstapaper;//Instapaper
22+
UIKIT_EXTERN NSString * const WFSharePlatformTwitter;//推特
23+
UIKIT_EXTERN NSString * const WFSharePlatformRenRen;//人人
24+
UIKIT_EXTERN NSString * const WFSharePlatformNULL; //NUll
25+
26+
typedef void(^ClickActionBlock)(SharePlatform);
27+
/**
28+
* 分享面板
29+
*/
30+
@interface WFSharePanelView : UIView<UIScrollViewDelegate>
31+
32+
@property (nonatomic, copy) ClickActionBlock actionBlock;
33+
@property (nonatomic, strong) UIView *whitePanel;
34+
35+
/**
36+
* 单例
37+
*
38+
* @return 单例
39+
*/
40+
+ (WFSharePanelView *)sharedManager;
41+
42+
43+
/**
44+
* 弹出分享视图
45+
* @param hasStore 是否有收藏按钮
46+
* @param actionBlock 点击对应平台按钮的回调
47+
* @param platformTitle 对应平台 请传WFSharePlatformWeChat/WFSharePlatformWeChatFriends 如果增多 请自行添加并添加_platformDict字典
48+
*/
49+
- (void)showSharePanelHasStore:(BOOL)hasStore
50+
byClick:(ClickActionBlock)actionBlock
51+
withPlatform:(NSString *)platformTitle,...NS_REQUIRES_NIL_TERMINATION;
52+
53+
54+
@end

0 commit comments

Comments
 (0)