Search code examples
xcodeswiftibaction

remove combined IBaction without removing


I've created an IBaction by highlighting multiple buttons and drag to my code.

I really don't want all 3 buttons to do same, so deleted the IBaction in the code.

However, the actions still remains (see screen dump)

How can I remove the 'received action' without removing the buttons involved?


Solution

  • In the storyboard / nib, what you have are connections. So go to each button's Connections inspector and delete the action there.

    To delete an action, click the little X:

    enter image description here