0

No crashes until I connect the label. Any type of connection results in this:

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x8d66200> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key

Classes are hooked up in each View Controller.

What is going on?!

Eduardo
  • 159
  • 8
  • just disconnect and reconnect connection ... – Rajneesh071 Jun 17 '13 at 06:25
  • Please check this:- http://stackoverflow.com/questions/3088059/this-class-is-not-key-value-coding-compliant-for-the-key and http://stackoverflow.com/questions/5458129/this-class-is-not-key-value-coding-compliant-for-the-key-givenname – Piyush Jun 17 '13 at 06:27
  • @Piyush I read that. My classes are all connected to each other. – Eduardo Jun 17 '13 at 06:31

3 Answers3

1

You forgot to set your custom class name in the XIB file (or one of the sections in the storyboard). It is still the default (UIViewController).

borrrden
  • 33,256
  • 8
  • 74
  • 109
  • Nope. Unfortunately I changed that and it's still not working. – Eduardo Jun 17 '13 at 06:58
  • You missed one (or one remains stale, be sure to clean and reinstall your app). – borrrden Jun 17 '13 at 06:58
  • Do I need to change it on every view controller? Even the ones that don't have the label in them? – Eduardo Jun 17 '13 at 07:03
  • Changed it in every view controller. Still not working. I don't understand. :( – Eduardo Jun 17 '13 at 07:08
  • I don't know what to tell you. The message is very clear. You are trying to set an unknown value on a **UIViewController** object, not a controller of your class. Without pictures and some code that's all I can say. – borrrden Jun 17 '13 at 07:21
  • Those are all of the pictures you need. – Eduardo Jun 17 '13 at 07:34
  • Alright, now next. When does this happen? As soon as the app launches? When you push a button? – borrrden Jun 17 '13 at 07:43
  • Yes. Actually, when I select a cell. – Eduardo Jun 17 '13 at 08:02
  • Then show the relevant code that you use when you select the cell. – borrrden Jun 17 '13 at 08:03
  • I have used a segue in my storyboard to link the view controllers. – Eduardo Jun 17 '13 at 08:06
  • Crashes when I click on the cell. Segues to the next view controller if I delete the label outlet. – Eduardo Jun 17 '13 at 08:08
  • Well, as I said earlier, first clean and reinstall your project. Then if it still happens then you will need to analyze your storyboard and code to see if there is any possible place you are calling UIViewController instead of TerminalsViewController. That's all I can tell you. – borrrden Jun 17 '13 at 08:12
0

Check references of your outlets in your XIB, one of the outlets is probably referencing a property that does not exist anymore

Vinayak Kini
  • 2,919
  • 21
  • 35
0

enter image description here

In above image lblserverDateTime is not exist in outlet .So remove this type of IBoutlet..

Kalpesh
  • 5,336
  • 26
  • 41