Useless iPhone Debugger Console error message!
April 17, 2009 . Posted in iPhone.
Today I re-learned not to trust the iPhone debugger console.
I trying to load a view when this happened:
[..] NSUnknownException, reason: [..] setValue:forUndefinedKey: [..] this class is not key value coding-compliant for the key"
To cut a long story short my problem was that I created a field in the IB (Interface Builder) and then I renamed it in my File Owner (a simple view controller).
Although I went to the IB and re-linked the renamed control (UITextField in my case) there was still a reference in the IB to the old name. I had to right click the file owner to see what fields it was "aware" of and just removed the "missing" field.
Hope this helped you learn that the error messages in the debugger console cannot (always) be trusted!
Cheers…
Tagged: iPhone

Post a comment