问题描述
我想澄清一下iOS 11及更高版本中的Twitter共享.
I would like to ask for clarification about Twitter sharing in iOS 11 onwards.
Apple的官方文档在发行说明中指出以下内容:
The official Apple documentation states in the release notes the following:
并且官方Twitter文档此处指出:
And the official Twitter documentation here states that:
我很难理解这种变化如何影响应用共享.
I'm having a bit of a hard time trying to understand how this changes affects sharing from apps.
当前,使用社交"框架,人们可以简单地使用 SLComposeViewController 通过多个服务轻松共享.
Currently, using the "Social" Framework, one could simply use SLComposeViewController to easily share through several services.
进行此更改后,只要用户安装了相应的应用程序,似乎仍可以使用 SLComposeViewController ,因为该应用程序将自动显示其自己的共享表.但是,如果未安装该应用程序,它将以静默方式失败(根据我的实验).
With this change it seems SLComposeViewController can STILL be used as long as the user has the corresponding app installed, since THAT app will show it's own share sheet automatically. But if the app is not installed, it will just silently fail (based on my experiments).
*当前,Twitter用户正在显示没有Twitter帐户"警报消息,但我认为这是一个错误.
*Currently the twitter one is showing a "No Twitter Account" alert message, but I believe this is a bug.
如果正确的行为是上述行为,那么我的理解是正确的.但是,twitter文档听起来好像Social框架将不再适用于twitter.
If the correct behavior is the one described above, then my understanding is correct. However, the twitter documentation makes it sound as if the Social framework will just not work for twitter anymore.
此外,"SLServiceTypeTwitter"现在显示为已弃用,这意味着继续依赖它不是一个好主意. https://developer.apple.com/documentation/social/slservicetypetwitter
Additionally, "SLServiceTypeTwitter" is now shown as deprecated, meaning it's a bad idea to keep relying on it. https://developer.apple.com/documentation/social/slservicetypetwitter
有人可以帮我澄清一下吗?
Could someone clarify this for me?
PD:我敢肯定,这也适用于其他社会服务.
PD: I'm sure this applies to other social services as well.
推荐答案
Twitter上的人回答了我的问题.现在似乎是一个错误:
The people from twitter answered my question. It seems to be a bug right now:
https://twittercommunity.com/t/bug-in-ios-11/91490
但是,仍然不确定这是否是iOS 11的默认行为.
However, it's still unconfirmed if this will be the default behavior for iOS 11.
此问题已在Twitter.app(7.7.2)版本中修复
The issue was fixed in version Twitter.app (7.7.2)
为澄清起见,如果用户安装了Twitter.app(7.72及更高版本),则该行为不应再发生,因为共享窗口实际上是由Twitter应用程序提供的.(与Facebook分享相同)
For clarification, this behavior should no longer occur if the user has the Twitter.app (version 7.72 and up) installed, since the sharing window is actually provided by the Twitter app. (Same as Facebook sharing)
这篇关于iOS 11中的Twitter共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!