2015-06-05 8 views
6

Ich entwickle eine einfache App und wenn ich klicke, um den Benutzer zu registrieren, wird die App beendet. Bitte helfen Sie mir, dies herauszufinden.Swift: Beenden mit nicht abgefangener Ausnahme vom Typ NSException

Er sagt, dass:

beenden app aufgrund nicht abgefangene Ausnahme 'NSUnknownKeyException', Grund: ‚[ setValue: forUndefinedKey:]: diese Klasse Codierung-konform für den Schlüssel CreditCardTextField nicht Schlüsselwert . "

Hier ist der Fehler im Detail:

015-06-04 22: 42: 57,661 ParseStarterProject [43853: 4461316] Unknown Klasse RegisterPageViewController in Interface Builder-Datei. 2015.06.04 22: 42: 57,712 ParseStarterProject [43853: 4461316] * App beenden aufgrund nicht abgefangene Ausnahme 'NSUnknownKeyException', Grund: ‚[setValue: forUndefinedKey:]: diese Klasse ist nicht Schlüsselwert coding- kompatibel mit dem Schlüssel CreditCardTextField. ' * Erster Aufrufstapel: (0 CoreFoundation 0x00000001106ccf35 exceptionPreprocess + 165 1 libobjc.A.dylib
0x000000011233ebb7 objc_exception_throw + 45 2 Corefoundation
0x00000001106ccb79 - [NSException erhöhen] + 9 3 Foundation
0x0000000110b6b7b3 - [NSObject (NSKeyValueCoding) setValue: forKey:] + 259 4 Corefoundation 0x0000000110616e80 - [NSArray makeObjectsPerformSelector:] + 224 5 UIKit 0x000000011134bc7d - [UINib instantiateWithOwner: Optionen:] + 1506 6
UIKit 0x00000001111aaf98 - [UIViewController _loadViewFromNibNamed: bundle:] + 242 7 UIKit 0x00000001111ab588 - [UIViewController Loadview] + 109 8 UIKit
0x00000001111ab7f9 - [UIViewController loadViewIfRequired] + 75 9
UIKit 0x00000001111abc8e - [UIViewController Ansicht] + 27 10 UIKit 0x000000011174d41e - [_ UIFullscreenPresentationController _setPresentedViewController:] + 65 11 UIKit 0x0000000111187429 - [UIPresentationController initWithPresentedViewController: presentingViewController:] + 105 12 UIKit 0x00000001111b7a41 - [UIViewController _presentViewController: withAnimationController: Vollendung:] + 1746 13 UIKit 0x00000001111b9d81 __62- [UIViewController presentViewController: animiert: Fertigstellung:] _ block_invoke + 132 14 UIKit 0x00000001111b9ca5 - [UIViewController presentViewController: animiert: Fertigstellung:] + 229 15 UIKit 0x00000001110878be 012.- [UIApplication sendAction: zu: von: forEvent:] + 75 16 UIKit 0x000000011118e410 - [UIControl _sendActionsForEvents: withevent:] + 467 17 UIKit 0x000000011118d7df - [UIControl touchesEnded: withevent:] + 522 18 UIKit 0x00000001110cd308 - [UIWindow _sendTouchesForEvent :] + 735 19 UIKit 0x00000001110cdc33 - [UIWindow sendevent:] + 683 20 UIKit
0x000000011109a9b1 - [UIApplication sendevent:] + 246 21 UIKit
0x00000001110a7a7d _UIApplicationHandleEventFromQueueEvent + 17370 22 UIKit 0x0000000111083103 _UIApplicationHandleEventQueue + 1961 23 Corefoundation 0x0000000110602551 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 17 24 Corefoundation 0x00000001105f841d __CFRunLoopDoSources0 + 269 25 Corefoundation 0x00000001105f7a54 __CFRunLoopRun + 868 26 Corefoundation
0x00000001105f7486 CFRunLoopRunSpecific + 470 27 GraphicsServices
0x0000000113de79f0 GSEventRunModal + 161 28 UIKit
0x0000000111086420 UIApplicationMain + 1282 29 ParseStarterProject
0x000000010fbbe9de top_level_code + 78 30 ParseStarterProject
0x000000010fbbeaba Haupt + 42 31 libdyld.dylib
0x0000000112b54145 Start + 1 32 ???
0x0000000000000001 0x0 + 1) libC++ abi.dylib: endet mit abgefangene Ausnahme vom Typ NSException (LLDB)

Antwort

6

enter image description here Es scheint, dass Sie eine bronken @IBOutlet für CreditCardTextField haben, überprüfen Sie in Ihrem Storyboard, sobald Sie den Ausgang wieder alles sollte wieder funktionieren

setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key CreditCardTextField.' 

Dies ist, wie Sie Ihre Steckdosen überprüfen:

Wählen Sie das Feld, sollten die Anschlüsse in der richtigen richtig und die Kreise im Code verbinden sollte innerhalb einen Punkt, wenn nicht die Verbindung br ist Ziehen Sie das Steuerelement, um es zu beheben.

Verwandte Themen