質問編集履歴
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
下記のview(nextview)をpresentで表示して、手動操作で閉じた後で特定の処理(print)を行いたいのですが、
|
2
|
-
present実行直後に実行されてしまいます。
|
2
|
+
present実行直後に実行されてしまいます。
|
3
3
|
|
4
|
+
self.presentのcompletionの使い方を間違っているでしょうか?
|
5
|
+
|
6
|
+
特定の処理は遷移先のviewでなく、遷移元のviewに実装したいです。
|
7
|
+
|
8
|
+
|
4
9
|
let storyboard = UIStoryboard(name: "Charge", bundle: nil)
|
5
10
|
if let nextView: TabBarViewController = storyboard.instantiateInitialViewController() as? TabBarViewController {
|
6
11
|
self.present(nextView, animated: true, completion: {
|