0

I am creating a scrollview in a separate tab in my app so that I can fit more controls on the screen. However, when I click on the tab, the run pauses with error:

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

Any ideas why?

Cerbrus
  • 70,800
  • 18
  • 132
  • 147
Alex
  • 3,031
  • 6
  • 34
  • 56
  • possible duplicate of [What does this mean? "'NSUnknownKeyException', reason: ... This class is not key value coding-compliant for the key X"](http://stackoverflow.com/questions/3088059/what-does-this-mean-nsunknownkeyexception-reason-this-class-is-not-key) – jtbandes Aug 03 '15 at 06:45

1 Answers1

0

In your xib file you've connected something to a "scroll" property which doesn't exist anymore. Find this connection and remove it, and the error should go away.

jtbandes
  • 115,675
  • 35
  • 233
  • 266
  • The only thing I have, is the scrollview in the xib, and a IBOutlet in my .h file. When I remove the IBOutlet and therefore the connection, the error goes away but the view doesn't scroll. When I create the IBOutlet again, and connect it, the run pauses when I try to load the view. – Alex Aug 17 '11 at 00:16