Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

增加代码说明

  • Loading branch information...
commit 4b22c39a91ade7e49e6462801af30d808de62ddb 1 parent f30d577
@qdvictory authored
View
31 README.md
@@ -1,13 +1,42 @@
1.CHShareManager.m中修改配置信息
+`
+#define kWBAppkey @"xxxx"
+#define kWBSecret @"xxx"
+#define kQQAppkey @"xxx"
+#define kQQSecret @"" //optional
+`
2.修改qq回调地址
WBAuthorizeWebView.m
-define kQQCallback @"qq.com"
+`
+#define kQQCallback @"qq.com"
+`
sina无需修改
3.添加Security.framework
4.调用查看WBShareKitViewController.m
+`
+- (IBAction)sinaSend:(id)sender {
+ if (![[CHShareManager mainManager] sinaIsVailed]) {
+ [[CHShareManager mainManager] showLoginOnViewController:self type:@"sina" finish:@selector(logInDidFinished:) failed:@selector(logInDidFailed:Error:)];
+ }
+ else{
+ [[CHShareManager mainManager] sendWeibo:@"WBShareKit test" image:nil type:@"sina" vc:self finish:@selector(sendDidFinished:) failed:@selector(sendDidError:)];
+ }
+
+}
+
+- (IBAction)qqSend:(id)sender {
+ if (![[CHShareManager mainManager] qqIsVailed]) {
+ [[CHShareManager mainManager] showLoginOnViewController:self type:@"qq" finish:@selector(logInDidFinished:) failed:@selector(logInDidFailed:error:)];
+ }
+ else
+ {
+ [[CHShareManager mainManager] sendWeibo:@"WBShareKit test" image:nil type:@"qq" vc:self finish:@selector(sendDidFinished:) failed:@selector(sendDidError:)];//暂时不支持发送图片,可利用分享api传入image url来实现发送目的。
+ }
+}
+`
5.新版WBShareKit只是将
[http://qzonestyle.gtimg.cn/qzone/vas/opensns/res/doc/Connect_IOS_SDK__V1.2.zip](http://qzonestyle.gtimg.cn/qzone/vas/opensns/res/doc/Connect_IOS_SDK__V1.2.zip)
View
BIN  ...it/WBShareKit.xcodeproj/project.xcworkspace/xcuserdata/Seamus.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.