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’

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

I’m Rich & Co.

Welcome to Tongfamily, our cozy corner of the internet dedicated to all things technology and interesting. Here, we invite you to join us on a journey of tips, tricks, and traps. Let’s get geeky!

Let’s connect