Swift3でジェスチャーいろいろ
タップ
1 2 3 4 5 6 7 8 |
let tapGesture:UITapGestureRecognizer = UITapGestureRecognizer( target: self, action: #selector(TangoViewController.tapped(_:))) aView.addGestureRecognizer(tapGesture) func tapped(_ sender: UITapGestureRecognizer){ // 処理 print("tap") } |
スワイプ(左) [cray…