回答編集履歴
1
遷移について追記
answer
CHANGED
@@ -1,1 +1,16 @@
|
|
1
|
+
##スワイプ
|
1
|
-
スワイプしたいViewに`UISwipeGestureRecognizer`を`addGestureRecognizer`して下さい。
|
2
|
+
スワイプしたいViewに`UISwipeGestureRecognizer`を`addGestureRecognizer`して下さい。
|
3
|
+
|
4
|
+
##遷移
|
5
|
+
|
6
|
+
#ViewController1からViewController2に遷移
|
7
|
+
ViewController1で、
|
8
|
+
```swift
|
9
|
+
self.navigationController?.pushViewController(ViewController2(), animated: true)
|
10
|
+
```
|
11
|
+
|
12
|
+
#ViewController2からViewController1に戻る
|
13
|
+
ViewController2の中で、
|
14
|
+
```swift
|
15
|
+
self.navigationController?.popViewControllerAnimated(true)
|
16
|
+
```
|