回答編集履歴

1

修正

2018/03/02 14:01

投稿

fromageblanc
fromageblanc

スコア2724

test CHANGED
@@ -8,16 +8,12 @@
8
8
 
9
9
  // 戻って★を起動
10
10
 
11
- self.dismiss(animated: true, completion: {
11
+ self.dismiss(animated: true, completion: nil)
12
+
13
+ //ViewController().backFromModal() -> これだと新規のインスタンスを作成
14
+
15
+ (presentingViewController as? ViewController)?.backFromModal()
12
16
 
13
17
 
14
18
 
15
- //ViewController().backFromModal() -> これだと新規のインスタンスを作成
16
-
17
- (self.presentingViewController as? ViewController)?.backFromModal()
18
-
19
-
20
-
21
- })
22
-
23
19
  ```