1

I am new to Xcode and objective C programming.Please help me to resolve the following problem.

After adding the Textfield and buttons i tried to give connection for view and controller and it leads to the following error.

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

and the debugger gets terminated.It happens only after adding the view - controller connection.

I searched google but found that class name should be specified exactly under Class Identifiers,but i have specified it and even then i am getting this error.

Please help me to resolve this issue.

jtbandes
  • 115,675
  • 35
  • 233
  • 266
Shankaranarayana
  • 583
  • 1
  • 6
  • 10

1 Answers1

1

This is mostly caused because of changing the name of the variable that you have connected in your XIB file. If this is the case you can check the bottom right of your interface builder(in xcode 3) and if you see a warning sign than you will know that something has went wrong. You can then reconnect the outlet in your interface builder and everything will be good to go.

Robin
  • 10,011
  • 5
  • 49
  • 75