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

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

android - how to get distance of 2 beacons and make a condtion base on that distance -

c# - WPF Expander overlay used in ItemsControl -