如果未在iOS 6上配置Twitter或Facebook帐户怎么办? [英] What if Twitter or Facebook accounts are not configured on iOS 6?
问题描述
如果用户尚未登录,是否有人知道如何让用户输入他们的Facebook或Twitter帐户登录信息?例如,用户尝试使用Facebook登录我的应用程序,而无需在iOS设置中配置Facebook帐户。例如,我可以让他用警报来做这件事,但我怎样才能将他带到设置的确切部分呢?
Does anybody know a smart way to bring the user to enter their Facebook or Twitter account login information, if they aren't already logged in? For example, a user tries to log in my application with Facebook without configuring the Facebook account in the iOS settings. Can I ask him to do it with an alert, for example, but how can I bring him to the exact section of settings for that?
推荐答案
@rckoenes是对的。在正常情况下,无法手动将用户发送到首选项。在iOS 5中有一种方法可以实现这一点,但Apple在iOS 5.0.1或5.1中很快就将其折旧了。我不记得究竟是哪一种。
@rckoenes is correct. Under normal circumstances there is no way to manually send the user to preferences. There was a method of doing this introduced in iOS 5, but Apple quickly depreciated it in iOS 5.0.1 or 5.1 I don't remember exactly which one.
现在,关于目前的情况。如果您在社交框架
中使用 SLComposeViewController
,您甚至不必担心自己添加此功能。它由iOS自动完成。下面是我的6.0模拟器尝试在没有任何帐户登录的情况下发布到Facebook的屏幕截图。对于Twitter和新浪微博也是如此。
Now, on to the current situation. If you are using an SLComposeViewController
in the Social Framework
, you don't even have to worry about adding this functionality yourself. It is done automatically by iOS. Below is a screenshot from my 6.0 simulator attempting to post to Facebook without any accounts signed in. This is also true for Twitter and Sina Weibo.
这篇关于如果未在iOS 6上配置Twitter或Facebook帐户怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!