简体   繁体   English

iOS 6本机Facebook / Twitter登录信息

[英]iOS 6 native Facebook/Twitter login info

I want to add Facebook/Twitter posting in my app using SLComposeViewController in iOS6 and I just want to add a check if the user is already logged in to Facebook/Twitter on device. 我想使用iOS6中的SLComposeViewController在我的应用程序中添加Facebook / Twitter帖子,我只想添加一个检查用户是否已经在设备上登录Facebook / Twitter。 So my question is that is it even necessary to add this sort of a check? 所以我的问题是,甚至有必要添加这种支票吗? Does iOS 6 handle this automatically? iOS 6是否会自动处理? If I do need to add it, how can it be done? 如果确实需要添加它,该怎么办? I've looked around a bit but I can't find much help on this. 我环顾了一下,但在此方面找不到太多帮助。 Thanks 谢谢

In my opinion it's a bug, but if the user has not set up a Twitter/Facebook account on their device already, it will not appear in the UIActivity action sheet. 我认为这是一个错误,但是如果用户尚未在其设备上设置Twitter / Facebook帐户,则该帐户不会出现在UIActivity操作表中。

With the stock iOS 6 Apple apps, this bug doesn't exist, so when the user taps on Twitter on the action sheet and if they haven't set up an account yet, a UIAlert will come up and ask the user if they wish to go to Settings to configure a new account. 对于现有的iOS 6 Apple应用程序,该错误不存在,因此,当用户在操作表上点击Twitter时,如果尚未设置帐户,UIAlert将会出现并询问用户是否希望转到“设置”以配置新帐户。 Unfortunately 3rd party apps don't get this until or IF the bug is fixed. 不幸的是,第3方应用程序直到错误修复后才能得到此信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM