teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

回答変更

2019/01/30 14:38

投稿

akaakoz
akaakoz

スコア183

answer CHANGED
@@ -5,16 +5,12 @@
5
5
  withCompletionHandler completionHandler: @escaping () -> Void) {
6
6
  //windowを生成
7
7
  self.window = UIWindow(frame: UIScreen.main.bounds)
8
- //windowのタブバー設定
8
+
9
- self.window?.rootViewController = UITabBarController()
10
-
11
- if let tabController = self.window?.rootViewController as? UITabBarController {
12
- //タブバーの一番初めに推移
13
- tabController.selectedIndex = 0
14
-
15
9
  let storyboard = UIStoryboard(name: "Main", bundle: nil)
16
10
  //推移先を指定
17
- let initialViewController = storyboard.instantiateViewController(withIdentifier:"EventDetail")
11
+ if let initialViewController = storyboard.instantiateViewController(withIdentifier:"EventDetail") {
12
+        initialViewController.modalPresentationStyle = .overFullScreen
13
+ self.window?.rootViewController = initialViewController
18
14
  self.window?.makeKeyAndVisible()
19
15
  }
20
16
 
@@ -23,4 +19,6 @@
23
19
 
24
20
  }
25
21
 
26
- ```
22
+ ```
23
+
24
+ 修正しました