iOS-友盟SDK6.4,自定义分享
来源:互联网 发布:软件锁许可管理器 cad 编辑:程序博客网 时间:2024/06/05 17:05
1、
在 SDK 路径UMSocalSDK -- UMSocialCore.framework -- Headers -- UMSocialPlatformConfig.h
文件中定义你需要的平台类型
//用户自定义的平台UMSocialPlatformType_UserDefine_Begin = 1000,UMSocialPlatformType_GZB = 1001,//GZBUMSocialPlatformType_UserDefine_End = 2000,
2、创建QXCustomSharePlatform类
3、
在QXCustomSharePlatform.m中,实现友盟文档要求一定要实现的方法:
+(void)load{
[superload];
}
+(NSArray*) socialPlatformTypes
{
return @[@(UMSocialPlatformType_UserDefine_Begin+1)];
}
+ (UMSocialTemplateHandler *)defaultManager
{
static UMSocialTemplateHandler *instance = nil;
staticdispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
if (!instance) {
instance = [[self alloc] init];
}
});
return instance;
}
// 点击自定义平台的图标之后,会走这个方法,我这里是发送通知,告诉实现功能的页面要分享什么
- (void)umSocial_ShareWithObject:(UMSocialMessageObject *)object withCompletionHandler:(UMSocialRequestCompletionHandler)completionHandler
{
NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
[notificationCenter postNotificationName:@"ShareToLocalNotification" object:nil userInfo:nil];
}
4、
在友盟分享中添加自己自定义的平台
[UMSocialUIManager addCustomPlatformWithoutFilted:UMSocialPlatformType_GZB withPlatformIcon:@“自己平台的图片” withPlatformName:@“自己平台的名字”];
[UMSocialUIManager showShareMenuViewInWindowWithPlatformSelectionBlock:^(UMSocialPlatformType platformType, NSDictionary *userInfo) {
...
}];
- iOS-友盟SDK6.4,自定义分享
- Android 友盟sdk6.3.0 分享,授权登陆详解
- IOS自定义分享内容
- iOS UIActivityViewController自定义分享配置
- ios sdk6 中强制横屏显示界面的方法
- iOS Android 截屏分享图片,&& iOS自定义图片分享
- 友盟分享新浪微博(sdk6.0),没有客户端无法分享
- iOS中大流中的自定义cell 技术分享
- iOS中大流中的自定义cell 技术分享
- iOS 自定义常见第三方分享
- 自定义友盟分享界面iOS
- iOS 自定义分享功能(分享到微博等sahreSDK)
- iOS自定义分享 (一)分享组件的接入
- iOS 微信分享整理 - 自定义分享菜单
- iOS集成分享--友盟
- ios无证书调试-xcode4.5-ios sdk6.0-ipodtouch5(ios6.1,已越狱)
- IOS 编译ffmpeg For SDK6.1,模拟器、armv7、armv7s均可使用
- IOS 编译ffmpeg For SDK6.1,模拟器、armv7、armv7s均可使用
- ROS学习 之 命名空间(NameSpace)、重映射(Remapping)、名称(Names)
- 卡尔曼滤波 预测与测量我们更应该相信谁?
- MatLab·函数类型
- 无法启动此程序,因为计算机中丢失MSVCR110.dll。尝试重新安装此程序以解决此问题。
- spring中的事务
- iOS-友盟SDK6.4,自定义分享
- linux中磁盘的管理
- java中一个对象的实例化
- 找出二维数组的鞍点
- 算法---将一个整数反转(简单)
- docker1.12--docker命令行帮助文档
- startActivityForResult请求码
- let's shell---ln 命令使用参数详解
- [Zabbix] Redis 监控