Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCristiano Di Marco
5,345 PointsThis lesson with the iOS 7 sdk does not work
it return this error
2014-06-13 14:26:10.266 MyBlogReader[2570:70b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSCFConstantString 0x7aec> valueForUndefinedKey:]: this class is not key value coding-compliant for the key timeStamp.' *** First throw call stack: ( 0 CoreFoundation 0x01aa05e4 _exceptionPreprocess + 180 1 libobjc.A.dylib 0x018238b6 objc_exception_throw + 44 2 CoreFoundation 0x01b306a1 -[NSException raise] + 17 3 Foundation 0x014e48ca -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 282 4 Foundation 0x01451921 _NSGetUsingKeyValueGetter + 81 5 Foundation 0x01450f5b -[NSObject(NSKeyValueCoding) valueForKey:] + 260 6 MyBlogReader 0x00002bf7 -[cdmDetailViewController configureView] + 183 7 MyBlogReader 0x00002b13 -[cdmDetailViewController setDetailItem:] + 131 8 MyBlogReader 0x0000418f -[cdmMasterViewController prepareForSegue:sender:] + 431 9 UIKit 0x00ac606c -[UIStoryboardSegueTemplate _perform:] + 156 10 UIKit 0x00ac60f9 -[UIStoryboardSegueTemplate perform:] + 115 11 UIKit 0x00673775 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1453 12 UIKit 0x00673924 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 279 13 UIKit 0x00677908 __38-[UITableView touchesEnded:withEvent:]_block_invoke + 43 14 UIKit 0x005ae183 __afterCACommitHandler_block_invoke + 15 15 UIKit 0x005ae12e _applyBlockToCFArrayCopiedToStack + 403 16 UIKit 0x005adf5a _afterCACommitHandler + 532 17 CoreFoundation 0x01a684ce __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 30 18 CoreFoundation 0x01a6841f __CFRunLoopDoObservers + 399 19 CoreFoundation 0x01a46344 __CFRunLoopRun + 1076 20 CoreFoundation 0x01a45ac3 CFRunLoopRunSpecific + 467 21 CoreFoundation 0x01a458db CFRunLoopRunInMode + 123 22 GraphicsServices 0x039019e2 GSEventRunModal + 192 23 GraphicsServices 0x03901809 GSEventRun + 104 24 UIKit 0x00591d3b UIApplicationMain + 1225 25 MyBlogReader 0x00002a5d main + 141 26 libdyld.dylib 0x020de701 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException
2 Answers
Ali Oguzhan Yildiz
3,982 PointsDamn. found it after 30 mins:
in DetailViewController.m file, find configureView method.
change this line:
self.detailDescriptionLabel.text = [self.detailItem valueForKey:@"timeStamp"] description];
with:
self.detailDescriptionLabel.text = self.detailItem;
because of this line. it expecting a dictionary instead of string. thats why we get this error.
colinli
5,073 PointsYou can download the project files to double check your code in the Downloads tab