iOS Hacking

OK, learning lots in the evenings and gotten some horrible crashes. This is the best yet! I got an ” Terminating app due to uncaught exception ‘NSUnknownKeyException’
See…

Here’s what wasted 2 hrs of my late night time:
I had connected an UIControl outlet in the interface builder to the IBOutlet in the xib’s owner. For some reason, the IBOutlet was deleted from the owner, but the reference to the outlet remained dangling in the xib. This would always give me the error

"Terminating app due to uncaught exception 'NSUnknownKeyException'"

Lesson learnt: When deleting any outlets for vars in the implementation, make sure to unhook the respective connection in the IB

. iphone – Terminating app due to uncaught exception ‘NSUnknownKeyException’ – Stack Overflow

Share
%d bloggers like this: