Swift gesture
- 7. ①gestureの箱を作ります
override func viewDidLoad() {
super.viewDidLoad()
// ピンチ
let myPinchGesture = UIPinchGestureRecognizer(target:
self, action: "pinchGesture:")
// 回転
let myRotate = UIRotationGestureRecognizer(target:
self, action: “rotateGesture:")
// パン(ドラック)
let myPan = UIPanGestureRecognizer(target: self,
action: "panGesture:")
}