简体   繁体   English

当Apple从设置中删除时,如何在Xcode 9 Simulator中访问Twitter?

[英]How to access Twitter in Xcode 9 Simulator when Apple remove it from Settings?

I'm trying to learn Swift on iOS 10 + Swift 3 Course of Stanford. 我正在尝试在斯坦福的iOS 10 + Swift 3课程上学习Swift。 But I'm coding with Xcode 9 - iOS 11 - Swift 4. When I want to access Twitter to fetch the data from the Twitter framework, there is an error: 但我正在编写Xcode 9 - iOS 11 - Swift 4.当我想访问Twitter以从Twitter框架获取数据时,出现错误:

"TwitterRequest: Access to Twitter was not granted." “TwitterRequest:未授予对Twitter的访问权限。”

We can fix this bug, by the way, is going to Settings and Sign in Twitter but in iOS 11, Apple has removed it from Settings I do not how to access Twitter, please help me. 我们可以修复这个错误,顺便说一句,是设置和登录Twitter,但在iOS 11中,Apple已将其从设置中删除我不知道如何访问Twitter,请帮助我。
Thank you so much! 非常感谢!

iOS 11 no longer supports using Twitter through the built-in social framework. iOS 11不再支持通过内置的社交框架使用Twitter。 Instead, you can use Twitter Kit 3 to Tweet, log in users, and use the Twitter API. 相反,您可以使用Twitter Kit 3来推文,登录用户并使用Twitter API。

Take a look at this guide . 看一下本指南 But overall it got more complicated to accomplish Twitter login and if you are just getting started with iOS development I'd recommend skipping this step if possible. 但总体而言,完成Twitter登录变得更加复杂,如果您刚开始使用iOS开发,我建议尽可能跳过此步骤。

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

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