回答編集履歴

1

回答変更

2019/01/30 14:38

投稿

akaakoz
akaakoz

スコア183

test CHANGED
@@ -12,25 +12,17 @@
12
12
 
13
13
  self.window = UIWindow(frame: UIScreen.main.bounds)
14
14
 
15
- //windowのタブバー設定
15
+
16
-
17
- self.window?.rootViewController = UITabBarController()
18
-
19
-
20
-
21
- if let tabController = self.window?.rootViewController as? UITabBarController {
22
-
23
- //タブバーの一番初めに推移
24
-
25
- tabController.selectedIndex = 0
26
-
27
-
28
16
 
29
17
  let storyboard = UIStoryboard(name: "Main", bundle: nil)
30
18
 
31
19
  //推移先を指定
32
20
 
33
- let initialViewController = storyboard.instantiateViewController(withIdentifier:"EventDetail")
21
+ if let initialViewController = storyboard.instantiateViewController(withIdentifier:"EventDetail") {
22
+
23
+        initialViewController.modalPresentationStyle = .overFullScreen
24
+
25
+ self.window?.rootViewController = initialViewController
34
26
 
35
27
  self.window?.makeKeyAndVisible()
36
28
 
@@ -49,3 +41,7 @@
49
41
 
50
42
 
51
43
  ```
44
+
45
+
46
+
47
+ 修正しました