Xcode cannot find button

Asked

Viewed 106 times

0

I created a button on storyboard to connect to a viewController.

When clicking on the button occurs the error:

thread 1:Signal SIGARBT

What could be causing such a mistake?

I’ve seen many tutorials and nothing.

  • Ask the question what code you are using to make it easier to help you.

  • I’m not using code I just connected the button to the view controller....

2 answers

2


Fabio, I made a very simple example of capturing click on a button:

  1. I created a project "Single View Application"
  2. In the Viewcontroller. m file, I implemented the callback for the click inserir a descrição da imagem aqui
  3. In the storyboard, I added the button and right-clicked on it. Then I turned on the "Touch up Inside" event in Viewcontroller. inserir a descrição da imagem aqui

0

This error occurs when what is on the storyboard is not properly linked to viewcontroller. Click the right mouse button on the button and see where it is pointing. This will be in Sent Events.

You can delete the link and make another or even call in the code that is already in viewcontroller

I hope I’ve helped

Browser other questions tagged

You are not signed in. Login or sign up in order to post.