Gesture Recognizers in iOS · Pinch & Rotation | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/9225-gesture-recognizers-in-ios/lessons/4

@jessycatterwaul, @catie, why did you delete gestureRecognizer argument name in func gestureRecognizer at the end of the video?

As @catie says at 4:35, we didn’t need either of the parameters. Using an underscore for a parameter still satisfies the signature for a delegate method, which only can require argument labels, not parameter names. It’s primarily a note to anyone reading the code that the arguments won’t be used.

1 Like

Thanks! It is clear now.

1 Like