Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func viewDidLoad() {
- super.viewDidLoad()
- let tap = UITapGestureRecognizer(target: self, action: #selector(doubleTapped))
- tap.numberOfTapsRequired = 2
- view.addGestureRecognizer(tap)
- }
- @objc func doubleTapped() {
- // do something here
- }
Advertisement
Add Comment
Please, Sign In to add comment