Vivek Tyagi
Vivek Tyagi

Reputation: 178

How to use method for pan gestures in swift 3?

This line is giving me error:

let recognizer = UIPanGestureRecognizer(target: self, action: Selector(("handlePan")))

Upvotes: 0

Views: 139

Answers (1)

AXY
AXY

Reputation: 46

As far as i understood your problem it will be solved by changing in syntax a little bit. I also faced this once. Try this

let recognizer = UIPanGestureRecognizer(target: self, action: #selector(CustomTableViewCell.handlePanTest(_:)))

Upvotes: 1

Related Questions