如何使用 Twitter.framework 指导用户将其 Twitter 帐户添加到 Twitter 设置中?
在 iOS5 上,是否可以提示并引导用户进入 Twitter Settings.app 区域,以便他们可以将 Twitter 帐户添加到手机上?如果是的话你会怎么做?
作为解决方法,我可以引导他们打开 Settings.app,仅此而已。
On iOS5 is it possible to prompt and direct a user to the Twitter Settings.app area so they can add their twitter account to the phone? If so how do you do it?
As a work around I can direct them to open Settings.app but thats about it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果他们在设备上没有 twitter 帐户,而预算不足以实现更复杂的功能,我只是弹出一个浏览器,这可能对某些人有用:
I just pop a browser if they don't have the twitter account on the device on an app where the budget was not large enough to implement more complex functionality, this may be useful to some people:
我在另一篇 SO 帖子中找到了解决方案:
在“设置”应用中打开 Twitter 设置< /a>
简短的回答是:
I found the solution in another SO Post:
Open Twitter settings in Settings app
Short answer is:
如果 tweetsheet 发现设置下的 Twitter 中没有帐户,则 Tweetsheet 会自行执行此操作,然后它会弹出一个 AlertView,该警报视图将自动引导用户登录 Twitter 的本机设置,有关更多信息,请参阅此链接 http://dl.dropbox.com/u/47726728/tweet%20sheet.swf
下载此文件并在 jing 中打开或拖到浏览器上
Tweetsheet did this by itself if tweetsheet found that if there is no account in twitter under setting then it pops an AlertView that will automatically guide user to log in on the native setting for twitter for more refer to this link http://dl.dropbox.com/u/47726728/tweet%20sheet.swf
download this file and open it in jing or drag it on your browser
正如此处评论中所述,自 5.1 以来,这是 iOS 中的默认行为。只需打开这些小部件之一,如果用户尚未在 iOS 中输入帐户,系统就会提示用户这样做。
As noted in a comment here, this is now default behavior in iOS since 5.1. Just open one of those widgets and if the user hasn't input an account into iOS the user will be prompted to do so.