Navigation one view controller to another getting - ios

I want navigate viewController to TargetViewController but I'm getting following error:
2016-05-11 15:47:27.182 Sum of Numbers[2882:209790] *** Terminating
app due to uncaught exception 'NSUnknownKeyException', reason:
'[ setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key bttn.'
*** First throw call stack: ( 0 CoreFoundation 0x00000001016f9f45 __exceptionPreprocess + 165 1 libobjc.A.dylib
0x0000000101173deb objc_exception_throw + 48 2 CoreFoundation
0x00000001016f9b89 -[NSException raise] + 9 3 Foundation
0x0000000100d40a6b -[NSObject(NSKeyValueCoding) setValue:forKey:] +
288 4 UIKit 0x0000000101c3104c
-[UIViewController setValue:forKey:] + 88 5 UIKit 0x0000000101e5ea71 -[UIRuntimeOutletConnection connect] + 109 6
CoreFoundation 0x000000010163aa80 -[NSArray
makeObjectsPerformSelector:] + 224 7 UIKit
0x0000000101e5d454 -[UINib instantiateWithOwner:options:] + 1864 8
UIKit 0x0000000101c37c16
-[UIViewController _loadViewFromNibNamed:bundle:] + 381 9 UIKit 0x0000000101c38542 -[UIViewController loadView] + 178 10 UIKit
0x0000000101c388a0 -[UIViewController loadViewIfRequired] + 138 11
UIKit 0x0000000101c39013
-[UIViewController view] + 27 12 UIKit 0x00000001023db7e7 -[_UIFullscreenPresentationController
_setPresentedViewController:] + 87 13 UIKit 0x0000000101c08dde -[UIPresentationController
initWithPresentedViewController:presentingViewController:] + 133 14
UIKit 0x0000000101c4b9ba
-[UIViewController _presentViewController:withAnimationController:completion:] + 4004 15 UIKit 0x0000000101c4ec5c
-[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 489 16 UIKit 0x0000000101c4e76b
-[UIViewController presentViewController:animated:completion:] + 179 17 Sum of Numbers 0x0000000100c756f8
-[ViewController Sum:] + 120 18 UIKit 0x0000000101aa7e91 -[UIApplication sendAction:to:from:forEvent:] + 92
19 UIKit 0x0000000101c134d8
-[UIControl sendAction:to:forEvent:] + 67 20 UIKit 0x0000000101c137a4 -[UIControl _sendActionsForEvents:withEvent:] + 311
21 UIKit 0x0000000101c128d4
-[UIControl touchesEnded:withEvent:] + 601 22 UIKit 0x0000000101b15ed1 -[UIWindow _sendTouchesForEvent:] + 835 23 UIKit
0x0000000101b16c06 -[UIWindow sendEvent:] + 865 24 UIKit
0x0000000101ac62fa -[UIApplication sendEvent:] + 263 25 UIKit
0x0000000101aa0abf _UIApplicationHandleEventQueue + 6844 26
CoreFoundation 0x0000000101626011
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 27 CoreFoundation 0x000000010161bf3c
__CFRunLoopDoSources0 + 556 28 CoreFoundation 0x000000010161b3f3 __CFRunLoopRun + 867 29 CoreFoundation
0x000000010161ae08 CFRunLoopRunSpecific + 488 30 GraphicsServices
0x0000000104e95ad2 GSEventRunModal + 161 31 UIKit
0x0000000101aa630d UIApplicationMain + 171 32 Sum of Numbers
0x0000000100c75aaf main + 111 33 libdyld.dylib
0x0000000103e1d92d start + 1 ) libc++abi.dylib: terminating with
uncaught exception of type NSException (lldb)
My viewController.m
#interface ViewController ()
#end
#implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)Sum:(id)sender {
TargetViewController *add = [[TargetViewController alloc]
initWithNibName:#"TargetViewController123" bundle:nil];
// TargetViewController *membr = [[TargetViewController alloc] initWithNibName:#"TargetViewController123"];
[self presentViewController:add animated:YES completion:nil];
}
#end
I don't know where I get the error. Please help

Your error is described here:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key bttn.
This means that something is trying to call a property bttn on a class that doesn't have a property with this name. This often happens if you have connected an IBOutlet in your view controller, and then deleted it in the code but forgot to remove the outlet reference from your element in Interface Builder.

Related

How to move from one viewcontroller to another in a storyboard using swift [duplicate]

This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 4 years ago.
I am trying to move from SignInViewController to RegisterUserViewController on button click .Here is code
#IBAction func RegisterNewAccountButtonTapped(_ sender: Any) {
print("Register account button tapped")
//RegisterUserViewController
// let storyboard = UIStoryboard(name: "SignInViewController", bundle: nil)
let vc = self.storyboard?.instantiateViewController(withIdentifier: "RegisterUserViewController") as! RegisterUserViewController
self.present(vc, animated: true)
}
Here in this picture are the class and storyboard id
Here is error that is coming on pressing Register New Account button .
2018-04-27 06:09:24.720143-0700 UserRegistrationExample[10193:1788611] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UserRegistrationExample.RegisterUserViewController 0x7f84b4f171b0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key repeatPasswordTextField.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010db1826b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010a1fbf41 objc_exception_throw + 48
2 CoreFoundation 0x000000010db181b9 -[NSException raise] + 9
3 Foundation 0x0000000109c20883 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
4 UIKit 0x000000010a95dd56 -[UIViewController setValue:forKey:] + 87
5 UIKit 0x000000010ac3ac94 -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x000000010dabb61d -[NSArray makeObjectsPerformSelector:] + 317
7 UIKit 0x000000010ac3964a -[UINib instantiateWithOwner:options:] + 1856
8 UIKit 0x000000010a964d49 -[UIViewController _loadViewFromNibNamed:bundle:] + 383
9 UIKit 0x000000010a965652 -[UIViewController loadView] + 177
10 UIKit 0x000000010a965983 -[UIViewController loadViewIfRequired] + 195
11 UIKit 0x000000010a9661e0 -[UIViewController view] + 27
12 UIKit 0x000000010b3bd39d -[_UIFullscreenPresentationController _setPresentedViewController:] + 89
13 UIKit 0x000000010a936a8f -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 133
14 UIKit 0x000000010a979338 -[UIViewController _presentViewController:withAnimationController:completion:] + 3808
15 UIKit 0x000000010a97c14a __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 134
16 UIKit 0x000000010a97c5ea -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 532
17 UIKit 0x000000010a97c086 -[UIViewController presentViewController:animated:completion:] + 181
18 UserRegistrationExample 0x00000001098e0ae5 _T023UserRegistrationExample20SignInViewControllerC30RegisterNewAccountButtonTappedyypF + 1077
19 UserRegistrationExample 0x00000001098e0c58 _T023UserRegistrationExample20SignInViewControllerC30RegisterNewAccountButtonTappedyypFTo + 72
20 UIKit 0x000000010a7cd631 -[UIApplication sendAction:to:from:forEvent:] + 83
21 UIKit 0x000000010a942000 -[UIControl sendAction:to:forEvent:] + 67
22 UIKit 0x000000010a94231d -[UIControl _sendActionsForEvents:withEvent:] + 450
23 UIKit 0x000000010a94124a -[UIControl touchesEnded:withEvent:] + 618
24 UIKit 0x000000010a840bf1 -[UIWindow _sendTouchesForEvent:] + 2807
25 UIKit 0x000000010a842314 -[UIWindow sendEvent:] + 4124
26 UIKit 0x000000010a7e82da -[UIApplication sendEvent:] + 352
27 UIKit 0x000000010b0f6f18 __dispatchPreprocessedEventFromEventQueue + 2809
28 UIKit 0x000000010b0f9a7f __handleEventQueueInternal + 5957
29 CoreFoundation 0x000000010dabb351 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
30 CoreFoundation 0x000000010db5ad71 __CFRunLoopDoSource0 + 81
31 CoreFoundation 0x000000010da9fcb9 __CFRunLoopDoSources0 + 185
32 CoreFoundation 0x000000010da9f29f __CFRunLoopRun + 1279
33 CoreFoundation 0x000000010da9eb29 CFRunLoopRunSpecific + 409
34 GraphicsServices 0x00000001101af9c6 GSEventRunModal + 62
35 UIKit 0x000000010a7cb9a4 UIApplicationMain + 159
36 UserRegistrationExample 0x00000001098deee7 main + 55
37 libdyld.dylib 0x000000010ec3a621 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I have visited the following links but non of them solved the problem
https://coderwall.com/p/cjuzng/swift-instantiate-a-view-controller-using-its-storyboard-name-in-xcode
instantiateViewControllerWithIdentifier - Storyboard id set but still not working
Present View Controller in Storyboard with a Navigation Controller - Swift
Swift 3, Xcode 8 Instantiate View Controller is not working
Instantiate and Present a viewController in Swift
How to remove this error.
You can download the code from this link
.https://drive.google.com/open?id=1yUaKeI6ZQphN7CsoiaeF2p4TmW_B5-9u
Try CTRL and drag from your button to the next ViewController. Then select "show". This is how you set a segue. Then click on the segue and give him an identifier. Then you need to set the
performSegue(withIdentifier: String, sender: self)
Have you tried this?

Swift 2 arc4random_uniform crash?

I have a very simple execution, but it's crashing for some reason. Any ideas why?
import UIKit
class ViewController: UIViewController {
#IBOutlet var myTextField: UITextField!
#IBOutlet var resultsLabel: UILabel!
#IBAction func pressButton(sender: AnyObject) {
let diceRoll = String(arc4random_uniform(UInt32(6)))
print(diceRoll)
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
Crash Log added
2016-02-06 16:24:32.358 GuessingGame[6330:496415] * Terminating app
due to uncaught exception 'NSUnknownKeyException', reason: '[
setValue:forUndefinedKey:]: this class is not key value
coding-compliant for the key TextField.' * First throw call stack: ( 0
CoreFoundation 0x000000010960ae65 exceptionPreprocess + 165 1
libobjc.A.dylib 0x000000010b34adeb objc_exception_throw + 48 2
CoreFoundation 0x000000010960aaa9 -[NSException raise] + 9 3
Foundation 0x00000001099d39bb -[NSObject(NSKeyValueCoding)
setValue:forKey:] + 288 4 UIKit 0x0000000109fb6320 -[UIViewController
setValue:forKey:] + 88 5 UIKit 0x000000010a1e4f41
-[UIRuntimeOutletConnection connect] + 109 6 CoreFoundation 0x000000010954b4a0 -[NSArray makeObjectsPerformSelector:] + 224 7
UIKit 0x000000010a1e3924 -[UINib instantiateWithOwner:options:] + 1864
8 UIKit 0x0000000109fbceea -[UIViewController
_loadViewFromNibNamed:bundle:] + 381 9 UIKit 0x0000000109fbd816 -[UIViewController loadView] + 178 10 UIKit 0x0000000109fbdb74 -[UIViewController loadViewIfRequired] + 138 11 UIKit 0x0000000109fbe2e7 -[UIViewController view] + 27 12 UIKit
0x0000000109e94ab0 -[UIWindow addRootViewControllerViewIfPossible] +
61 13 UIKit 0x0000000109e95199 -[UIWindow _setHidden:forced:] + 282 14
UIKit 0x0000000109ea6c2e -[UIWindow makeKeyAndVisible] + 42 15 UIKit
0x0000000109e1f663 -[UIApplication
_callInitializationDelegatesForMainScene:transitionContext:] + 4131 16 UIKit 0x0000000109e25cc6 -[UIApplication
_runWithMainScene:transitionContext:completion:] + 1760 17 UIKit 0x0000000109e22e7b -[UIApplication workspaceDidEndTransaction:] + 188
18 FrontBoardServices 0x000000010d1df754 -[FBSSerialQueue
_performNext] + 192 19 FrontBoardServices 0x000000010d1dfac2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45 20 CoreFoundation 0x0000000109536a31
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 21 CoreFoundation 0x000000010952c95c __CFRunLoopDoSources0 + 556 22
CoreFoundation 0x000000010952be13 __CFRunLoopRun + 867 23
CoreFoundation 0x000000010952b828 CFRunLoopRunSpecific + 488 24 UIKit
0x0000000109e227cd -[UIApplication _run] + 402 25 UIKit
0x0000000109e27610 UIApplicationMain + 171 26 GuessingGame
0x000000010942b4dd main + 109 27 libdyld.dylib 0x000000010be5392d
start + 1 ) libc++abi.dylib: terminating with uncaught exception of
type NSException (lldb)
Most likely cause is that you renamed your IBOutlet from TextField to myTextField in your code (or added a new link but did not remove the old reference from the control in IB).

App crashes when i try to run this page

My app builds and runs successfully and the other pages do not have any issues. This page builds successfully, however, when I attempt to go to the page the app will crash. I am unsure of how to fix this issue.
import UIKit
class ViewController: UIViewController
{
#IBOutlet weak var txtView: UITextView!
func loadData (){
var txtView: NSMutableArray = NSMutableArray ()
txtView.removeAllObjects()
var query = PFQuery(className:"NewsPages")
query.getObjectInBackgroundWithId("KerL5Xf0Bx")
{
(NewsPages: PFObject!, error: NSError!) -> Void in
if error == nil
{
let content = NewsPages["content"] as String
self.txtView.text = String()
}
else
{
NSLog("%#", error)
}
}
}
}
My Error Code:
2014-12-21 20:00:05.679 App[1707:84302] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<App.ViewController 0x7fab1a4aabf0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key GameScore.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010b649f35 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010d18dbb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010b649b79 -[NSException raise] + 9
3 Foundation 0x000000010ba617b3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 CoreFoundation 0x000000010b593e80 -[NSArray makeObjectsPerformSelector:] + 224
5 UIKit 0x000000010c19ac7d -[UINib instantiateWithOwner:options:] + 1506
6 UIKit 0x000000010bff9f98 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
7 UIKit 0x000000010bffa588 -[UIViewController loadView] + 109
8 UIKit 0x000000010bffa7f9 -[UIViewController loadViewIfRequired] + 75
9 UIKit 0x000000010bffac8e -[UIViewController view] + 27
10 UIKit 0x000000010c59c41e -[_UIFullscreenPresentationController _setPresentedViewController:] + 65
11 UIKit 0x000000010bfd6429 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 105
12 UIKit 0x000000010c006a41 -[UIViewController _presentViewController:withAnimationController:completion:] + 1746
13 UIKit 0x000000010c008d81 __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 132
14 UIKit 0x000000010c008ca5 -[UIViewController presentViewController:animated:completion:] + 229
15 UIKit 0x000000010bed68be -[UIApplication sendAction:to:from:forEvent:] + 75
16 UIKit 0x000000010bfdd410 -[UIControl _sendActionsForEvents:withEvent:] + 467
17 UIKit 0x000000010bfdc7df -[UIControl touchesEnded:withEvent:] + 522
18 UIKit 0x000000010bf1c308 -[UIWindow _sendTouchesForEvent:] + 735
19 UIKit 0x000000010bf1cc33 -[UIWindow sendEvent:] + 683
20 UIKit 0x000000010bee99b1 -[UIApplication sendEvent:] + 246
21 UIKit 0x000000010bef6a7d _UIApplicationHandleEventFromQueueEvent + 17370
22 UIKit 0x000000010bed2103 _UIApplicationHandleEventQueue + 1961
23 CoreFoundation 0x000000010b57f551 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
24 CoreFoundation 0x000000010b57541d __CFRunLoopDoSources0 + 269
25 CoreFoundation 0x000000010b574a54 __CFRunLoopRun + 868
26 CoreFoundation 0x000000010b574486 CFRunLoopRunSpecific + 470
27 GraphicsServices 0x000000010e6e09f0 GSEventRunModal + 161
28 UIKit 0x000000010bed5420 UIApplicationMain + 1282
29 Mars App 0x000000010a21d98e top_level_code + 78
30 Mars App 0x000000010a21da6a main + 42
31 libdyld.dylib 0x000000010e1f0145 start + 1
32 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Open your corresponding xib file check all UI outlet connections, there you can see warning in some connection . delete that.
This error is always your xib file bind a error or not exists method ,so when you load view controllers fail.Check your xib file

Crash attempting to set delegate of textfield

I have a lot of textfields and what I am trying to make them do is dismiss when the return key is used. In order for this to work you need to set the delegate of each textfield to self, like this [textfield setDelegate: self];. I have over 50 textfields in my project and in order to make it so they all dismiss I have to copy that line of code for each textfield. In the example below I used a for loop to try to shrink this down, but my project crashes and gives me this error when I try. Can someone tell me what im doing wrong and how i can fix this?
//.h
#interface InsertScheduleCGPS : UIViewController <UITextFieldDelegate>{
NSArray *Dayh;
IBOutlet UITextField *Day11;
}
#property(nonatomic, assign) id<UITextFieldDelegate> delegate;
#property (nonatomic,strong) NSArray *Dayh;
.
//.m
- (void)viewDidLoad
{
[super viewDidLoad];
Dayh = [NSArray arrayWithObjects:#"Day11", nil];
NSLog(#"euf");
for(int i=0; i<[self.Dayh count]; i++) {
NSLog(#"dd%#",[self.Dayh objectAtIndex:i]);
[[self.Dayh objectAtIndex:i] setDelegate: self];
}
- (BOOL)textFieldShouldReturn:(UITextField *)Day11 {
[[self view] endEditing:YES];
return NO;
}
ERROR:
2014-01-18 19:15:26.712 Swepple[64912:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString setDelegate:]: unrecognized selector sent to instance 0x144ec'
*** First throw call stack:
(
0 CoreFoundation 0x0183b5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x015be8b6 objc_exception_throw + 44
2 CoreFoundation 0x018d8903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x0182b90b ___forwarding___ + 1019
4 CoreFoundation 0x0182b4ee _CF_forwarding_prep_0 + 14
5 Swepple 0x0000bbd6 -[InsertScheduleCGPS viewDidLoad] + 4262
6 UIKit 0x00440318 -[UIViewController loadViewIfRequired] + 696
7 UIKit 0x004405b4 -[UIViewController view] + 35
8 UIKit 0x0044f361 -[UIViewController viewControllerForRotation] + 63
9 UIKit 0x00446f00 -[UIViewController _visibleView] + 84
10 UIKit 0x006d511a -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 5199
11 UIKit 0x0044c0fc -[UIViewController presentViewController:withTransition:completion:] + 6433
12 UIKit 0x0044c61f -[UIViewController presentViewController:animated:completion:] + 130
13 UIKit 0x0044c65f -[UIViewController presentModalViewController:animated:] + 56
14 UIKit 0x00870e16 -[UIStoryboardModalSegue perform] + 271
15 UIKit 0x0086107e -[UIStoryboardSegueTemplate _perform:] + 174
16 UIKit 0x00442280 -[UIViewController performSegueWithIdentifier:sender:] + 72
17 Swepple 0x000052d4 -[SecondViewController insert:] + 244
18 libobjc.A.dylib 0x015d0874 -[NSObject performSelector:withObject:withObject:] + 77
19 UIKit 0x0032e0c2 -[UIApplication sendAction:to:from:forEvent:] + 108
20 UIKit 0x0032e04e -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
21 UIKit 0x004260c1 -[UIControl sendAction:to:forEvent:] + 66
22 UIKit 0x00426484 -[UIControl _sendActionsForEvents:withEvent:] + 577
23 UIKit 0x00425733 -[UIControl touchesEnded:withEvent:] + 641
24 UIKit 0x0036b51d -[UIWindow _sendTouchesForEvent:] + 852
25 UIKit 0x0036c184 -[UIWindow sendEvent:] + 1232
26 UIKit 0x0033fe86 -[UIApplication sendEvent:] + 242
27 UIKit 0x0032a18f _UIApplicationHandleEventQueue + 11421
28 CoreFoundation 0x017c483f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
29 CoreFoundation 0x017c41cb __CFRunLoopDoSources0 + 235
30 CoreFoundation 0x017e129e __CFRunLoopRun + 910
31 CoreFoundation 0x017e0ac3 CFRunLoopRunSpecific + 467
32 CoreFoundation 0x017e08db CFRunLoopRunInMode + 123
33 GraphicsServices 0x037e09e2 GSEventRunModal + 192
34 GraphicsServices 0x037e0809 GSEventRun + 104
35 UIKit 0x0032cd3b UIApplicationMain + 1225
36 Swepple 0x0000e04d main + 141
37 libdyld.dylib 0x01d7c70d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
You probably meant
Dayh = [NSArray arrayWithObjects:Day11, nil];
At present, Dayh is an array containing the string "Day11", not the text field.

Cant find derived class on xcode inspector

I'm new to xcode and objective-c and i have created the base class which is a UIViewController. Let's call it A.
I have also created created an inheriting class B.
Now im trying to use my storyboard and connect it to the relevant B file,
But it wont show on the inspector, only the A file does.
Here are the header files:
A:
#import <UIKit/UIKit.h>
#import "Deck.h"
#interface CardGameViewController : UIViewController
// for subclasses
- (Deck*)createDeck; //abstract
#end
and:
B:
#import "CardGameViewController.h"
#interface PlayingCardViewController : CardGameViewController
#end
Is there any way to pass that? or should B actually be on the inspector?
EDIT:
This is the error i get after forcing the inspector to use the PlayingCardViewController:
2014-01-07 18:24:09.874 Matchismo[80975:70b] Unknown class PlayingCardGameViewController in Interface Builder file.
2014-01-07 18:24:09.893 Matchismo[80975:70b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x8d841e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key cardButtons.'
*** First throw call stack:
(
0 CoreFoundation 0x017415e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x014c48b6 objc_exception_throw + 44
2 CoreFoundation 0x017d16a1 -[NSException raise] + 17
3 Foundation 0x011859ee -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x010f1cfb _NSSetUsingKeyValueSetter + 88
5 Foundation 0x010f1253 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 Foundation 0x0115370a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
7 UIKit 0x0071fe3a -[UIRuntimeOutletCollectionConnection performConnect] + 690
8 UIKit 0x0071fe75 -[UIRuntimeOutletCollectionConnection connect] + 33
9 libobjc.A.dylib 0x014d67d2 -[NSObject performSelector:] + 62
10 CoreFoundation 0x0173cb6a -[NSArray makeObjectsPerformSelector:] + 314
11 UIKit 0x004d356e -[UINib instantiateWithOwner:options:] + 1417
12 UIKit 0x00345605 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
13 UIKit 0x00345dad -[UIViewController loadView] + 302
14 UIKit 0x003460ae -[UIViewController loadViewIfRequired] + 78
15 UIKit 0x003465b4 -[UIViewController view] + 35
16 UIKit 0x0026e9fd -[UIWindow addRootViewControllerViewIfPossible] + 66
17 UIKit 0x0026ed97 -[UIWindow _setHidden:forced:] + 312
18 UIKit 0x0026f02d -[UIWindow _orderFrontWithoutMakingKey] + 49
19 UIKit 0x0027989a -[UIWindow makeKeyAndVisible] + 65
20 UIKit 0x0022ccd0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1851
21 UIKit 0x002313a8 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
22 UIKit 0x0024587c -[UIApplication handleEvent:withNewEvent:] + 3447
23 UIKit 0x00245de9 -[UIApplication sendEvent:] + 85
24 UIKit 0x00233025 _UIApplicationHandleEvent + 736
25 GraphicsServices 0x036e82f6 _PurpleEventCallback + 776
26 GraphicsServices 0x036e7e01 PurpleEventCallback + 46
27 CoreFoundation 0x016bcd65 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
28 CoreFoundation 0x016bca9b __CFRunLoopDoSource1 + 523
29 CoreFoundation 0x016e777c __CFRunLoopRun + 2156
30 CoreFoundation 0x016e6ac3 CFRunLoopRunSpecific + 467
31 CoreFoundation 0x016e68db CFRunLoopRunInMode + 123
32 UIKit 0x00230add -[UIApplication _run] + 840
33 UIKit 0x00232d3b UIApplicationMain + 1225
34 Matchismo 0x000038dd main + 141
35 libdyld.dylib 0x01d7f70d start + 1
36 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Go to the Product menu in Xcode and choose Clean. Sometimes that fixes weird issues like this.

Resources