Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Self-Destructing Message iPhone App Retrieving and Viewing Data from Parse.com Viewing Images Using UIImageView

Ribbit - Selecting a message in the inbox throws an exception.

It seems as though the identifier showImage is giving me some trouble - does anybody have an idea as to why?

2014-09-09 12:25:07.041 Ribbit[23373:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<InboxTableViewController: 0x9c9b340>) has no segue with identifier 'showImage'' *** First throw call stack: ( 0 CoreFoundation 0x026691e4 exceptionPreprocess + 180 1 libobjc.A.dylib 0x023e88e5 objc_exception_throw + 44 2 UIKit 0x011c948c -[UIViewController shouldPerformSegueWithIdentifier:sender:] + 0 3 Ribbit 0x00006d7f -[InboxTableViewController tableView:didSelectRowAtIndexPath:] + 415 4 UIKit 0x011929a1 -[UITableView selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1513 5 UIKit 0x01192b14 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 279 6 UIKit 0x0119710e __38-[UITableView touchesEnded:withEvent:]_block_invoke + 43 7 UIKit 0x010c60aa __afterCACommitHandler_block_invoke + 15 8 UIKit 0x010c6055 _applyBlockToCFArrayCopiedToStack + 403 9 UIKit 0x010c5e76 _afterCACommitHandler + 532 10 CoreFoundation 0x0263136e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 30 11 CoreFoundation 0x026312bf __CFRunLoopDoObservers + 399 12 CoreFoundation 0x0260f254 __CFRunLoopRun + 1076 13 CoreFoundation 0x0260e9d3 CFRunLoopRunSpecific + 467 14 CoreFoundation 0x0260e7eb CFRunLoopRunInMode + 123 15 GraphicsServices 0x036eb5ee GSEventRunModal + 192 16 GraphicsServices 0x036eb42b GSEventRun + 104 17 UIKit 0x010a8f9b UIApplicationMain + 1225 18 Ribbit 0x000098fd main + 141 19 libdyld.dylib 0x02bb2701 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException

4 Answers

 Vladimir Cezar
 Vladimir Cezar
7,710 Points

Done.

Small mistake. You had created your segue from the Navigation controller instead of Table View Controller. It is fixed, tested and... it works!

I sent you a pull request. Take a look at it in GH.

Oh you are correct! Thanks for your help!

How can this problem be resolved?

 Vladimir Cezar
 Vladimir Cezar
7,710 Points

On your Storyboard click on the segues out of your InboxTableViewController and check if all of them have identifiers.

They sure do, double checked for typo's as well.

 Vladimir Cezar
 Vladimir Cezar
7,710 Points

Put the project somewhere (github?) and I promise I will take a look at it.

Error happens when you go to view a message from the inbox.