アプリ初回起動時の登録画面を表示させたいのですがエラーが出ました。どうすれば動きますか?
import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. let userDefault = UserDefaults.standard let dict = ["firstLaunch": true] userDefault.register(defaults: dict) if userDefault.bool(forKey: "firstLaunch") { userDefault.set(false, forKey: "firstLaunch") let next = storyboard!.instantiateViewController(withIdentifier: "watch") self.present(next,animated: true, completion: nil) } return true }
**Use of unresolved identifier 'storyboard'**とエラーが出ました。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/08/14 14:59