liugangios / IFMShare

IFMShare是一个iOS客户端应用内分享的界面、功能一体化解决方案,使用简单、优雅,界面和功能高度可定制化。分享功能直接调用iOS系统内预制分享功能,无需去各种繁杂的社会化分享平台注册账号、无需下载导入各种SDK,使用非常简单。
MIT License
403 stars 55 forks source link

有安装QQ,但是提示没有安装,无法分享 #3

Closed nullfy closed 7 years ago

nullfy commented 7 years ago

QQ v6.1.0.211 Device iPad mini2 iOS10.3.2

liugangios commented 7 years ago

我用iphone是可以的。ipad不可以,很可能是service id和iphone的不一样。你调用一下 SLComposeViewController *composeVc = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeSinaWeibo]; 控制台里看一下QQ的service id看看和代码里写的service id一样不。

nullfy commented 7 years ago

奇怪了 2017-08-24 10:36:14.050330+0800 IFMShareDemo[2276:389235] [core] SLComposeViewController initWithServiceType: com.apple.social.sinaweibo 2017-08-24 10:36:14.073386+0800 IFMShareDemo[2276:389297] [core] SLComposeViewController _shareExtensionWithIdentifier: continuous discovery block got extensions ( "<NSExtension: 0x170173440> {id = com.evernote.iPhone.Evernote.EvernoteShare}", "<NSExtension: 0x1701735c0> {id = com.jianshu.Hugo.Share-Extension}", "<NSExtension: 0x170173740> {id = com.apple.share.Vimeo.post}", "<NSExtension: 0x1701738c0> {id = com.apple.share.Flickr.post}", "<NSExtension: 0x1701741c0> {id = com.apple.share.TencentWeibo.post}", "<NSExtension: 0x170173a40> {id = com.apple.share.Twitter.post}", "<NSExtension: 0x170173bc0> {id = com.apple.share.Facebook.post}", "<NSExtension: 0x170173ec0> {id = com.tencent.xin.sharetimeline}", "<NSExtension: 0x170173d40> {id = com.apple.share.SinaWeibo.post}", "<NSExtension: 0x170174040> {id = com.apple.reminders.RemindersEditorExtension}", "<NSExtension: 0x170174340> {id = com.apple.mobilenotes.SharingExtension}", "<NSExtension: 0x1701744c0> {id = com.sina.weibo.ShareExtension}", "<NSExtension: 0x170174700> { 2017-08-24 10:36:14.075909+0800 IFMShareDemo[2276:389297] [core] SLComposeViewController _shareExtensionWithIdentifier: continuous discovery block did update _identifierToShareExtensionMap { "com.apple.Music.MediaSocialShareService" = "<NSExtension: 0x170174880> {id = com.apple.Music.MediaSocialShareService}"; "com.apple.mobilenotes.SharingExtension" = "<NSExtension: 0x170174340> {id = com.apple.mobilenotes.SharingExtension}"; "com.apple.mobileslideshow.StreamShareService" = "<NSExtension: 0x170174700> {id = com.apple.mobileslideshow.StreamShareService}"; "com.apple.reminders.RemindersEditorExtension" = "<NSExtension: 0x170174040> {id = com.apple.reminders.RemindersEditorExtension}"; "com.apple.share.Facebook.post" = "<NSExtension: 0x170173bc0> {id = com.apple.share.Facebook.post}"; "com.apple.share.Flickr.post" = "<NSExtension: 0x1701738c0> {id = com.apple.share.Flickr.post}"; "com.apple.share.SinaWeibo.post" = "<NSExtension: 0x170173d40> {id = com.apple.share.SinaWeibo.post}"; "com.apple.share.TencentWeibo.post" = "<NSExtension: 0x1701741 2017-08-24 10:36:14.077127+0800 IFMShareDemo[2276:389235] [core] SLComposeViewController initWithServiceType got extension <NSExtension: 0x170173d40> {id = com.apple.share.SinaWeibo.post} for identifier com.apple.share.SinaWeibo.post 2017-08-24 10:36:14.077396+0800 IFMShareDemo[2276:389235] [core] SLComposeViewController initWithExtension: <NSExtension: 0x170173d40> {id = com.apple.share.SinaWeibo.post} requestedServiceType: com.apple.social.sinaweibo 2017-08-24 10:36:14.096883+0800 IFMShareDemo[2276:389235] [core] SLComposeViewController dealloc <SLComposeViewController: 0x10040a210>

liugangios commented 7 years ago

@mumusa 没有的话,可能就是QQ和微信的ipad版没有提供share extension。只能用他们的sdk或者openshare了。看打印,简书和印象笔记有,还有一些苹果自己的分享。你在ipad的safari的分享里看看,有没有分享到QQ,如果没有,那就真的没有提供了

nullfy commented 7 years ago

是没有的,感谢回复🙏