seo 怎么建设网站外链,中国建盏形象设计大赛获奖名单,wordpress意思,做外贸网站空间多少g流量精灵软件中#xff0c;也在大部分地方使用到了shareSDK 这个三方开源库。具体的有两种需求 a、弹出所有分享模块 b、只弹出指定的平台#xff1a;如微信朋友圈和QQ 。 配置方法#xff0c;三方库中也很详细#xff0c;这里我只有写出自出自己代码实现的部分 这里只写自… 流量精灵软件中也在大部分地方使用到了shareSDK 这个三方开源库。具体的有两种需求 a、弹出所有分享模块 b、只弹出指定的平台如微信朋友圈和QQ 。 配置方法三方库中也很详细这里我只有写出自出自己代码实现的部分 这里只写自己实现分享按钮点击弹出的部分代码吧 -(void)Share { NSString *imagePath [[NSBundle mainBundle] pathForResource:50 ofType:png]; //这里需要获取URL 地址 //构造分享内容 idISSContent publishContent [ShareSDK content:流量精灵下载地址http://www.mopote.com/lljl/m?fromios defaultContent:写下你的感言吧 image:[ShareSDK imageWithPath:imagePath] title:快用流量精灵管理你的流量吧 // 这里在微信朋友圈中会显示 url:http://www.mopote.com/lljl/m?fromios description:快用流量精灵管理你的流量吧 mediaType:SSPublishContentMediaTypeNews]; //自定义自己需要显示的平台 这个需求很重要。。。。 本案例中我只配置了微信朋友圈 NSArray *shareList [ShareSDK getShareListWithType:ShareTypeWeixiTimeline, nil]; [ShareSDK showShareActionSheet:nil shareList:shareList // 这里设置为nil 时候表示显示所有的平台 content:publishContent statusBarTips:NO authOptions:nil shareOptions: nil result:^(ShareType type, SSResponseState state, idISSPlatformShareInfo statusInfo, idICMErrorInfo error, BOOL end) { if (state SSResponseStateSuccess) { NSLog(分享成功); } else if (state SSResponseStateFail) { NSLog(分享失败,错误码:%ld,错误描述:%, (long)[error errorCode], [error errorDescription]); UIAlertView *alertView[[UIAlertView alloc]initWithTitle:分享失败 message:未安装微信应用 delegate:nil cancelButtonTitle:确定 otherButtonTitles:nil, nil]; [alertView show]; }else if (stateSSResponseStateBegan) { } }]; } 其实虽然说测试有时候很烦恼但是还是挺感谢测试的逼迫也让自己去研究。。。。解决问题都是被逼的。。。。转载于:https://www.cnblogs.com/kingbo/p/4121506.html