I have problem loading the saved data and the error is
2012-05-09 11:30:15.367 Homepwner[2796:fb03] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘Unacceptable type of value for attribute: property = “imageKey”; desired type = NSString; given type = UIImage; value = <UIImage: 0x91835e0>.’
the program is built successfully and run the the first time is ok. but after saving once and reload again, the above exception occurs. Already double the type of imageKey and it’s definitely “String” .
And try to re-do again in generating the new BNRItem.h & BNRItem.h as described in the book and the problem persists. I’m using Mac OS X version 10.7.3 and XCode 4.3.2 (4E2002).
Any help is much appreciated.