嘟嘟牛在线App踩过的坑
2016-05-31 本文已影响255人
国士无双A
ShareSDK分享
问题1:最近使用ShareSDK经常出现微信不能分享?
答:thumbImage: 这个要设置微信缩略图参数的
[shareParams SSDKSetupWeChatParamsByText:nil title:title url:[NSURL URLWithString:originUrl] thumbImage:nil image:[self returnFirstImageString] musicFileURL:nil extInfo:nil fileData:nil emoticonData:nil type:SSDKContentTypeAuto forPlatformSubType:SSDKPlatformSubTypeWechatSession]; //微信朋友圈
[shareParams SSDKSetupWeChatParamsByText:nil title:title url:[NSURL URLWithString:originUrl] thumbImage:nil image:[self returnFirstImageString] musicFileURL:nil extInfo:nil fileData:nil emoticonData:nil type:SSDKContentTypeAuto forPlatformSubType:SSDKPlatformSubTypeWechatTimeline]; //微信好友
[shareParams SSDKSetupWeChatParamsByText:nil title:title url:[NSURL URLWithString:originUrl] thumbImage:nil image:[self returnFirstImageString] musicFileURL:nil extInfo:nil fileData:nil emoticonData:nil type:SSDKContentTypeAuto forPlatformSubType:SSDKPlatformSubTypeWechatFav]; //微信收藏
问题2:新浪微博分享网页图片失败?
答:分享网络图片到新浪微博,需要有 高级微博写入接口的权限;
分享本地图片到新浪微博,不能分享PNG格式的。关于高级微博写入接口权限申请,见如下链接:传送门
问题3:怎么能每次新浪微博分享都跳转到客户端?
答:sina分享只授权一次,后面就直接分享。想要每次都授权 那就调用取消授权的接口。
+ (void)cancelAuthorize:(SSDKPlatformType)platformType;
问题4:新浪微博分享的时候,已经设置[NSURL URLWithString:originUrl],但是分享出来的仍然是文本形式的?
答:sina要分享链接 需要把链接写到内容里 和文字一起分享才行。例如:
NSString *text = [NSString stringWithFormat:@"%@ %@", title, originUrl];
[shareParams SSDKSetupSinaWeiboShareParamsByText:text title:title image:[self returnFirstImageString] url:nil latitude:0.0 longitude:0.0 objectID:nil type:SSDKContentTypeAuto];
适配IPV6
根据苹果的要求规定,在6月1号,所有上线的应用都必须兼容支持IPV6,对于我们有什么影响呢?
1、使用AFNetworking 2.0以上版本的,已经做过IPV6的适配了,开发者无需再进行适配。
2、工程当中使用的第三方SDK,都要检查一下,看下当前使用的SDK版本是否支持IPV6
前面2条已经满足大部分App对IPV6的兼容了。
bitcode
目前在项目中UMFeedBack不支持bitcode的。关于bitcode的深入理解,请参考下面的这篇文章:
国士梅花
欢迎大家关注国士梅花,技术路上与你陪伴。
