Just found that I need to be really careful when refactoring code that requires me to remove views from my project. I spent about 15 minutes trying to understand what the hell was going on, I was just receiving the following error:
1 2 3 4 |
2011-12-03 15:04:52.341 UIScroll1[80115:f803] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIScroll1ViewController 0x6d70990> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key customView.' |
I tried completely deleting my project from the device and simulator, running it again and still the same error. It turns out that I had removed all code references to customView but completely forgot about removing the outlets in the xib (Yeah still not a fan of storyboard).
So I guess I won’t be CTRL-dragging to hook up outlets anymore, it’s actually better to CTRL-Click on element or using the Connections editor because that way I can easily see warnings near broken or invalid connections.