Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

修改代码说明

  • Loading branch information...
commit ec10230cdc5bd3be50c24d004039291c5514be5b 1 parent 4b22c39
@qdvictory authored
Showing with 25 additions and 27 deletions.
  1. +25 −27 README.md
View
52 README.md
@@ -1,42 +1,40 @@
1.CHShareManager.m中修改配置信息
-`
-#define kWBAppkey @"xxxx"
-#define kWBSecret @"xxx"
-#define kQQAppkey @"xxx"
-#define kQQSecret @"" //optional
-`
+
+ #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:)];
+ - (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:)];
+ }
}
- else
- {
- [[CHShareManager mainManager] sendWeibo:@"WBShareKit test" image:nil type:@"qq" vc:self finish:@selector(sendDidFinished:) failed:@selector(sendDidError:)];//暂时不支持发送图片,可利用分享api传入image url来实现发送目的。
+
+ - (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)
Please sign in to comment.
Something went wrong with that request. Please try again.