###発生している問題・エラーメッセージ
アプリにtwitter投稿機能を実装させたいと考えています.
以下のサイトを参考にさせていただいたのですが,Value of type 'Twitter' has no member 'application'とエラーが出てしまいました.
https://dev.classmethod.jp/smartphone/ios11-feature-twitter-on-app/
###該当のソースコード
swift
1//appDelegate.swift 2import UIKit 3 4@UIApplicationMain 5class AppDelegate: UIResponder, UIApplicationDelegate { 6 7 var window: UIWindow? 8 9 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 10 Twitter.sharedInstance().start(withConsumerKey: "(Consumer Key)", consumerSecret: "(Consumer Secret)") 11 return true 12 } 13 14 func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool { 15 if Twitter.sharedInstance().application(app, open: url, options: options) { //ここでValue of type 'Twitter' has no member 'application'というエラー 16 return true 17 } 18 return false 19 }

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/02/03 04:48