'NSUnknownKeyException' when changing into details


#1

After this line:
[[self navigationController] pushViewController:detailViewController animated:YES];
in ItemDetailViewController.m

Prog crashes with:

‘NSUnknownKeyException’, reason: ‘[<ItemDetailViewController 0x17c7c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key takePicture.’

I am using Xcode 4.2.1 running on device iOS 5.0.1 so some things may be different.

Any hints of steps I could follow to isolate the problem would be highly appreciated.


#2

Found the bummer myself !

A typo in form of a logic negation. :unamused: