I created a multi-view web browser project in Xcode. When I ran the app though I got a signal abort error in the app delegate. I know what a signal abort is, but I do not know what is causing it in this scenario. Here is the more detailed info:
- The line in the app delegate that the debugger says the issue is in is "class AppDelegate: UIResponder, UIApplicationDelegate {".
- Here is some of the output: "Terminating app due to uncaught exception 'NSUnknownKeyException', reason:
.FirstViewController 0x7fe64bdaa540> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key goBack.".
If needed, I can give more information. What is wrong and how should fix it? Thank you!
Please note, I did not excactly know if this was in "Xcode IDE and Editor" or "Debugger". Sorry for the inconvinience!
>instead connect it?
From the docs https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIButton_Class/
Responding to Button Taps
Buttons use the target-action design pattern to notify your app when the user taps the button. Rather than handle touch events directly, you assign action methods to the button and designate which events trigger calls to your methods. At runtime, the button handles all incoming touch events and calls your methods in response.
You connect a button to your action method using the
addTarget:action:forControlEvents: method or by creating a connection in Interface Builder. The signature of an action method takes one of three forms, which are listed in Listing 1. Choose the form that provides the information that you need to respond to the button tap.