所以我使用Twitter上的TwitterKIT而不是面料,我收到了错误。这是代码。我还跟踪了在Twitter上完全记录的TwitterKIT的安装
[TwitterKit]无法从TWTRTimelineViewController加载推文: 错误域= TwitterAPIErrorDomain代码= 99"请求失败:禁止 (403)" UserInfo = {NSLocalizedFailureReason = Twitter API错误:无法使用 验证您的凭据(代码99),TWTRNetworkingStatusCode = 403, NSErrorFailingURLKey = https://api.twitter.com/oauth2/token, NSLocalizedDescription =请求失败:禁止(403)}
class TimeView: TWTRTimelineViewController{
@IBOutlet var Menu: UIBarButtonItem!
override func viewDidLoad() {
self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
Menu.target = self.revealViewController()
Menu.action = #selector(SWRevealViewController.revealToggle(_:))
let client = TWTRAPIClient.withCurrentUser()
self.dataSource = TWTRUserTimelineDataSource(screenName: "PortCreditSS", apiClient:client)
self.showTweetActions = true
}
}
答案 0 :(得分:4)
没关系,我修复了它重新生成密钥并粘贴修复问题的那些