ios - UILongPressGesture as IBAction or Property w/ handler method? -
This is just a general "best programming concepts" question, but if someone can answer it for me, I would appreciate it. I do I am trying to add a UILongPressGestureRecognizer on a button on my view controller, what better practice is there to implement long-term handling as IBAction, or what is included as the property containing the Handler method for long time? Or does it matter?
The button is in your storyboard. Whatever I normally do, I also make gesture identifiers in the storyboard. I connect the viewer to this view and then target @IBAction in my Visual Controller.
This works well for me.
Comments
Post a Comment