質問編集履歴
1
setRootViewController()を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -180,6 +180,38 @@
|
|
180
180
|
|
181
181
|
|
182
182
|
|
183
|
+
### 追記
|
184
|
+
|
185
|
+
```swift
|
186
|
+
|
187
|
+
func setRootViewController() {
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
if !UserDefaults.isDidShowLandingPage {
|
192
|
+
|
193
|
+
replaceRootViewController(by: LandingPageViewController.getXibVC())
|
194
|
+
|
195
|
+
return
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
if UserDefaults.userData != nil && UserDefaults.userData2 != nil {
|
200
|
+
|
201
|
+
setContainerToRoot()
|
202
|
+
|
203
|
+
} else {
|
204
|
+
|
205
|
+
setLoginVCToRoot()
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
}
|
210
|
+
|
211
|
+
```
|
212
|
+
|
213
|
+
|
214
|
+
|
183
215
|
|
184
216
|
|
185
217
|
### 補足情報
|