-2

How can I thoroughly delete the IBAction associated with a blank line in Xcode? That line is in line 40, there’s no any association with my UIButton with line 40. I tried to press the delete key, then the black point disappeared, but after I click run the app the Xcode says failed to run, because that black point came back again.

So how can I thoroughly delete the IBAction associated with a blank line? Thank you!

Kaushik Makwana
  • 1,329
  • 2
  • 14
  • 24
Sunshine
  • 1
  • 1
  • You are referencing a line number but there is no code... – Miladinho Jan 12 '19 at 01:38
  • Can you show your code, or at least a screenshot to show the error? – emrepun Jan 12 '19 at 01:38
  • @Miladinho So how can I redo the referencing? Because I intend to do nothing with that line – Sunshine Jan 12 '19 at 01:39
  • Sunshine I was basically saying what @emprepun is asking you, please show your code or be more clean about what it is you want. But from what it sounds like, just delete "@IBAction" part from the line an that's it, unless you dragged and dropped an IBAction from the storyboard or a Xib file into your code, then you must go to that component you dragged from and remove the reference, look at the answer you got below on how to do that. – Miladinho Jan 14 '19 at 00:59

1 Answers1

1

You need to select the button, go into storyboard. Then go to the panel (where you set the properties) and click the one with the arrow. Press the x next to your button.

image here