質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,25 +20,53 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
|
23
|
+
【追記】
|
24
24
|
|
25
|
-
|
25
|
+
AppDelegateからSceneDelegateに変更しています。
|
26
26
|
|
27
27
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
|
31
|
+
```SceneDelegate
|
32
32
|
|
33
|
-
|
33
|
+
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
34
|
-
|
35
|
-
let firstLunch = [firstLunchKey: true]
|
36
|
-
|
37
|
-
ud.register(defaults: firstLunch)
|
38
34
|
|
39
35
|
|
40
36
|
|
41
|
-
|
37
|
+
var window: UIWindow?
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
guard let _ = (scene as? UIWindowScene) else { return }
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
52
|
+
|
53
|
+
guard let _ = (scene as? UIWindowScene) else { return }
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
let SB = UIStoryboard(name: "Main", bundle: nil)
|
58
|
+
|
59
|
+
let VC = SB.instantiateViewController(withIdentifier: "toAboutApp") as! TopViewController
|
60
|
+
|
61
|
+
self.window = UIWindow(frame: UIScreen.main.bounds)
|
62
|
+
|
63
|
+
self.window?.rootViewController = VC
|
64
|
+
|
65
|
+
self.window?.makeKeyAndVisible()
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
|
42
70
|
|
43
71
|
}
|
44
72
|
|