We have place a button on a view. When we press it, nothing happens. It should be firing a function we have defined. This is what we have done.
We have used interface builder to map the touch up inside event to our function_A. We verify this by right clicking on our view controller and the mapping is there under the received actions section.
What else needs to be done to make this work?
In Interface Builder have you defined a function and checked that it is available for connection by seeing that it appears in Class Actions, in the Identity Inspector? Does the specification exactly match the function? Be particularly careful that if your function takes no arguments it has no colon after the name, and if it is the usual
signature then it does have a colon.
Have you used the Connections Inspector to connect the “Touch Up Inside” action of the button object to a function? When you look at Connections Inspector for Files’s Owner (or whatever object contains the button function) can you see the connection exists?