CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

YJShareSDK 0.0.1

YJShareSDK 0.0.1

Maintained by yj--description=yj-imac.



 
Depends on:
WeiboSDK>= 0
AFNetworking>= 0
MBProgressHUD>= 0
FBSDKCoreKit>= 0
FBSDKLoginKit>= 0
FBSDKShareKit>= 0
WechatOpenSDK>= 0
 

  • By
  • nico

YJShareSDK

集成一些第三方登录和第三方分享 主要包含了微信 QQ 新浪微博 Facebook Twitter。

如下微信登录 [[YJShareTool sharedInstance] registerWXAppKey:@"XXXXXXXXXX" secret:@"XXXXXXXXXXXXXX"]; [[YJShareTool sharedInstance] userLoginWithWechatSuccess:^(NSDictionary *info) {

} Failure:^(NSString *failureMeg) {
    
}];
XXXXXXXXXXXXX对应是自己的微信开发平台中应用的key 和secret。

分享方法: [[YJShareTool sharedInstance] shareLinkContentWithTitle:@"your title" description:@"your description" thumgImage:[UIImage imageNamed:@"your image"] linkUrl:@"your link url" currentVC:nil shareplatForm:SharePlatFormWXSpace shareResponse:^(ShareResponseCode responseCode, SharePlatFormType sharePlatFormType) {

}];