質問編集履歴
2
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -95,3 +95,49 @@
|
|
95
95
|
swift : version 5.1.3
|
96
96
|
|
97
97
|
ios : iOS 13.3
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
### 追記#1
|
104
|
+
|
105
|
+
```Swift
|
106
|
+
|
107
|
+
import UIKit
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
var window: UIWindow?
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
122
|
+
|
123
|
+
guard let _ = (scene as? UIWindowScene) else { return }
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
let SB = UIStoryboard(name: "Main", bundle: nil)
|
128
|
+
|
129
|
+
let VC = SB.instantiateViewController(withIdentifier: "Second") as! SecondViewController
|
130
|
+
|
131
|
+
self.window = UIWindow(frame: UIScreen.main.bounds)
|
132
|
+
|
133
|
+
self.window?.rootViewController = VC
|
134
|
+
|
135
|
+
self.window?.makeKeyAndVisible()
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
//以下略
|
142
|
+
|
143
|
+
```
|
1
あ
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,6 +78,14 @@
|
|
78
78
|
|
79
79
|
|
80
80
|
|
81
|
+
### 解決できなかった事
|
82
|
+
|
83
|
+
__SecondViewController__を起動画面にしたいのに,__ViewController__が表示されてしまう.
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
81
89
|
|
82
90
|
|
83
91
|
### 環境
|