ios 如何做原生分享
来源:互联网 发布:淘宝 法律咨询 靠谱吗 编辑:程序博客网 时间:2024/04/30 13:11
一、QQ分享,和QZone分享(不能不说下,腾讯的文档写的真差劲,文档居然与demo不一致,还好靠着自己的摸索搞定了)
QQ分享主要用到新闻分享
- (void)sharedByQQ{ [self checkNetData]; QQApiNewsObject *newsObj = [QQApiNewsObject objectWithURL:[NSURL URLWithString:_shareUrlStr] title:_shareTitleStr description:_shareTextStr previewImageURL:[NSURL URLWithString:_imageurlStr]]; SendMessageToQQReq *req = [SendMessageToQQReq reqWithContent:newsObj]; //将内容分享到qq [QQApiInterface sendReq:req];}
qq空间分享主要用到定向发送的方法
#pragma mark - qq空间- (void)setupQQZoneShare{ if (!_TXaccessToken) { _tencentOAuth = [[TencentOAuth alloc] initWithAppId:@"1102963885" andDelegate:self]; _permissions = [NSMutableArray arrayWithObjects:@"get_user_info", @"get_simple_userinfo", @"add_t", nil]; [_tencentOAuth authorize:_permissions inSafari:NO]; }else{ [self sharedByQQZone]; } }- (void)sharedByQQZone{ [self checkNetData]; NSMutableDictionary *data = [NSMutableDictionary dictionaryWithObjectsAndKeys: _shareTextStr, @"description", _imageurlStr, @"pics", _shareTitleStr, @"title", _shareUrlStr, @"url", nil]; if (NO == [_tencentOAuth sendStory:data friendList:nil]) { [self showInvalidTokenOrOpenIDMessage]; } }
0 0
- ios 如何做原生分享
- iOS原生分享UIActivityViewController
- iOS原生分享
- iOS 原生分享
- iOS 实现系统原生分享
- iOS 原生UIActivityViewController(分享功能)
- ios 原生 social.framework 分享
- 【iOS】原生微信登录和分享
- iOS自带的原生的分享
- ios微信和QQ原生分享
- Unity3D-调用IOS原生分享的实现
- iOS UIActivityViewController实现原生分享AirDrop
- iOS开发-使用ShareSDK做分享如何让新浪分享后是可点击蓝色文字
- ios开发苹果内置分享(原生分享)
- iOS 原生如何加载html标签
- iOS开发之调用系统原生分享功能
- js 调用原生 安卓 ios 分享、等 方法
- iOS 调用系统原生分享的一些体会
- Sicilly 1152 马的简单周游问题(5*6)
- 模型选择之交叉验证
- 从B树、B+树、B*树谈到R 树
- Android开发环境配置
- uvc摄像头代码解析6
- ios 如何做原生分享
- API函数前面::符号的含义
- jquery学习
- HDU 3415 Max Sum of Max-K-sub-sequence ( 单调队列 )
- uvc摄像头代码解析7
- 浅谈New关键字
- Remedy Developer Studio 使用direct sql更新的值,在Remedy中Execution Options中检测不出
- python 类库笔记
- 面向对象和面向过程的区别