Giter VIP home page Giter VIP logo

syshare's Introduction

CSShare

第三方 微信,新浪,QQ分享,和微信小程序调起

注释 /* 如果崩溃 记得配置一下 :CYShare --> info --> URL Types资料 / / 如果崩溃 记得配置一下 :CYShare --> info --> URL Types资料 / / 如果崩溃 记得配置一下 :CYShare --> info --> URL Types资料 */

1.pod 第三方的依赖库 pod 'WechatOpenSDK' # 微信 pod 'TencentOpenApiSDK' # QQ pod 'ShareSDK3/ShareSDKPlatforms/SinaWeibo' # 新浪

2.在 AppDelegate里引入#import "MYShare.h" /* 分享 初始化 */ [self registerApp];

3.在AppDelegate+appkey配置信息 /* 微信 / #define WXAppID @"" #define WXAppSecret @"" / QQ / #define QQAppID @"" #define QQAppSecret @"" / 新浪 */ #define SineAppID @"" #define SineAppSecret @"" #define SineRedirectUri @""

4.实现分享 /* 微信 / / 微信分享-网页类型 */

  • (void)shareWebpageObjectWeChat:(int)wxScene { WeChatPushModel *model = [WeChatPushModel new]; model.thumbimage = [UIImage imageNamed:@"ss.jpeg"]; model.webpageUrl = @"http://www.cnblogs.com/shenlaiyaoshi/"; model.userName = @"标题"; model.content = @"描述"; [MYWeChat shareWebpageObjectWeChat:WXSceneSession shareContent:model]; }

/* 微信分享-图片类型 */

  • (void)shareImageObjectWeChat:(int)wxScene { UIImage *image = [UIImage imageNamed:@"ss.jpeg"]; WeChatPushModel *model = [WeChatPushModel new]; model.maxImage = image; [MYWeChat shareImageObjectWeChat:wxScene shareContent:model]; }

/* 微信分享-文字类型 */

  • (void)shareMessageWeChat:(int)wxScene { WeChatPushModel *model = [WeChatPushModel new]; model.content = @"舒适的方式发到"; [MYWeChat shareMessageWeChat:wxScene shareContent:model]; }

/* 拉起的微信小程序 */

  • (void)pullUpWeChatApplet { WeChatPushModel *model = [WeChatPushModel new]; model.userName = @""; model.path = @""; model.miniType = WXMiniProgramTypeRelease; [MYWeChat pullUpWeChatApplet:model]; }

/* QQ / / 腾讯 QQ分享-新闻类型 */

/* 腾讯 QQ分享-纯图片类型 */

/* 腾讯 QQ分享-纯文本类型 */

  • (void)shareMessageQQ:(int)QQScene { TencentOpenQQPushModel *model = [TencentOpenQQPushModel new]; model.content = @"sdfsadfaffdaf"; [MYTencentOpenQQ shareTextMessageQQ:QQScene shareContent:model]; }

/* 新浪 / / 新浪分享-网页类型 */

  • (void)shareWebpageObjectWeibo { WeiBoPushModel *model = [WeiBoPushModel new]; model.content = @"是的发送到发发发呆"; model.maxImage = [UIImage imageNamed:@"ss.jpeg"]; model.webpageUrl = @"http://www.cnblogs.com/shenlaiyaoshi/"; [MYWeibo shareWebpageObjectWeibo:model]; }

/* 新浪分享-图片加文字类型 */

  • (void)shareImageObjectWeibo { WeiBoPushModel model = [WeiBoPushModel new]; model.content = @"是的发送到发发发呆"; model.maxImage = [UIImage imageNamed:@"ss.jpeg"]; [MYWeibo shareImageObjectWeibo:model]; } / 新浪分享-文字类型 */
  • (void)shareMessageWeibo { WeiBoPushModel *model = [WeiBoPushModel new]; model.content = @"是的发送到发发发呆"; [MYWeibo shareMessageWeiboContent:model]; }

syshare's People

Contributors

shenlaimango avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.