Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove Gesture recognizer in Xcode?

I'm not sure how to remove the gesture recognizers. Many thanks guys.

How can I remove these??

like image 761
Jim Clermonts Avatar asked Mar 19 '23 20:03

Jim Clermonts


2 Answers

Select && Press delete.

like image 120
nicael Avatar answered Apr 01 '23 21:04

nicael


Nicael's answer applies to Xcode 8 as well. Below is a more thorough procedure:

  1. Open Project Navigator and select Main.storyboard this should display the Image Navigator to the right

  2. Find the "Gesture Recognizer" in the Image Navigator on top of the Scene as in picture

    action icons of a Scene

    (the third icon form the left)

  3. Select the Gesture Recognizer icon and press the "delete" key as in picture

    Select the Gesture Recognizer icon

  4. Open the "Assistant Editor" or "Standard Editor" to locate the Gesture Recognizer code section in the Swift project and remove it.

like image 33
JubiAudio Avatar answered Apr 01 '23 23:04

JubiAudio