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 trial

iOS Build a Simple iPhone App with Objective-C Views and View Controllers View Controllers and IBAction

Pawin Pothasuthon
Pawin Pothasuthon
950 Points

error during running app

This following message appear in my console command

2016-11-23 21:40:43.738 funfact[3376:125976] -[ViewController showFunFacts:]: unrecognized selector sent to instance 0x7fcc19405b80 2016-11-23 21:40:43.742 funfact[3376:125976] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController showFunFacts:]: unrecognized selector sent to instance 0x7fcc19405b80' *** First throw call stack: ( 0 CoreFoundation 0x00000001102f634b exceptionPreprocess + 171 1 libobjc.A.dylib 0x000000010fd5721e objc_exception_throw + 48 2 CoreFoundation 0x0000000110365f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 CoreFoundation 0x000000011027bc15 ___forwarding_ + 1013 4 CoreFoundation 0x000000011027b798 CF_forwarding_prep_0 + 120 5 UIKit 0x000000011086a5b8 -[UIApplication sendAction:to:from:forEvent:] + 83 6 UIKit 0x00000001109efedd -[UIControl sendAction:to:forEvent:] + 67 7 UIKit 0x00000001109f01f6 -[UIControl _sendActionsForEvents:withEvent:] + 444 8 UIKit 0x00000001109ef0f2 -[UIControl touchesEnded:withEvent:] + 668 9 UIKit 0x00000001108d7ce1 -[UIWindow _sendTouchesForEvent:] + 2747 10 UIKit 0x00000001108d93cf -[UIWindow sendEvent:] + 4011 11 UIKit 0x000000011088663f -[UIApplication sendEvent:] + 371 12 UIKit 0x000000011107871d __dispatchPreprocessedEventFromEventQueue + 3248 13 UIKit 0x00000001110713c7 __handleEventQueue + 4879 14 CoreFoundation 0x000000011029b311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 17 15 CoreFoundation 0x000000011028059c __CFRunLoopDoSources0 + 556 16 CoreFoundation 0x000000011027fa86 __CFRunLoopRun + 918 17 CoreFoundation 0x000000011027f494 CFRunLoopRunSpecific + 420 18 GraphicsServices 0x00000001140eaa6f GSEventRunModal + 161 19 UIKit 0x0000000110868964 UIApplicationMain + 159 20 funfact 0x000000010f784bcf main + 111 21 libdyld.dylib 0x000000011316268d start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

It should be clean like the person in the video