0

This is the error message received in XCode:

2016-04-24 19:10:59.020 Bumble Bee[7286:421679] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Bumble_Bee.LoginController 0x7fc723db1ee0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key LoginTextField.'

The app was working fine until I added a new Swift file and defined a new custom view controller class named "LoginController".

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Jason Zheng
  • 5
  • 1
  • 4

1 Answers1

1

Check for the missing outlet at Interface. In this case, you may have an wrong outlet reference at UIViewController's nib file like this. Open Interface builder, press right button to check outlets.

enter image description here

BrikerMan
  • 334
  • 1
  • 6
  • Thanks BrikerMan! I right-clicked on my ViewController to check my outlets and indeed one of them were not linked properly in the swift reference file. – Jason Zheng Apr 24 '16 at 14:42