I am new to iOS and trying to make my own simple app. I have an add button in a master view controller that i want to load a table view controller embedded in a navigation controller. I did a control-drag from the add button to the navigation controller, but when I run the app the add button crashes with the following call stack:
BookMaker[5367:11303] Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key titleInpur.' *** First throw call stack: lots of hex values here.... libc++abi.dylib: terminate called throwing an exception
If I toggle exception break points, I get this error: (lldb)
I did a search thru my code and could not find titleInpur anywhere.
Debugging so far:
- These posts on SO seems to be very similar to problem but are about xib's instead of storyboards: What does this mean? "'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" and NSUnknownKeyException setValue:forUndefinedKey:
- Help postings here suggest rebuilding the add button. I tried that and got the same error.
- When I use prepareForSegue to pass value to the aim controller, there are some problems suggests changes to the prepare for segue method, but this is not helpful in my case because I am not passing any information to the new view (an add screen).