|
@@ -14,10 +14,17 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
var window: UIWindow?
|
|
var window: UIWindow?
|
|
|
|
|
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
|
- window = UIWindow()
|
|
|
|
- window?.makeKeyAndVisible()
|
|
|
|
- window?.rootViewController = ViewController()
|
|
|
|
- return true
|
|
|
|
|
|
+
|
|
|
|
+ window = UIWindow(frame: UIScreen.main.bounds)
|
|
|
|
+
|
|
|
|
+ let rootViewController = ViewController()
|
|
|
|
+ let navigationController = UINavigationController(rootViewController: rootViewController)
|
|
|
|
+
|
|
|
|
+ window?.rootViewController = navigationController
|
|
|
|
+
|
|
|
|
+ window?.makeKeyAndVisible()
|
|
|
|
+ return true
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|