Problem with UIPanGestureRecognizer
Problem with UIPanGestureRecognizer
- Subject: Problem with UIPanGestureRecognizer
- From: William Squires <email@hidden>
- Date: Sun, 26 Jun 2016 14:01:09 -0500
I've got a simple project whose view controller has both a UITapGestureRecognizer and a UIPanGestureRecognizer.
Both show up in the outline view (and their proxies(?) show up at the top of the view controller representation, along with the proxies for the view controller, the first responder, and "exit" (unwind segue?). I can confirm these are connected to my view controller (in swift, the dot-in-circle doohicky shows up to the left of the IBAction func grabDrop(sender: UIPanGestureRecognizer), and right-clicking on the proxy shows me the action connection to my view controller is in fact connected to grabDrop:, but... <drum roll, please>... a print("grabDrop:") right after the opening curly brace for the func never fires. How can I debug this? There's nothing to put a breakpoint on, since the code never fires, and one can't put a breakpoint on a storyboard. Help!!
i.e.
(*) IBAction func grabDrop(sender: UIPanGestureRecognizer)
{
print("grabDrop:") // <- never gets here!!
...
}
Arrrrgh! :(
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden