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
marsela meco
511 Pointsself destructing iOS app
I finished everything, but when i run it at very end, i click "log out" and it crashes and shows this ERROR:
[LoginViewController setMessage:]: unrecognized selector sent to instance 0x10af82580 2014-03-12 18:25:27.739 MyApp[2203:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[LoginViewController setMessage:]: unrecognized selector sent to instance 0x10af82580' *** First throw call stack: ( 0 CoreFoundation 0x0000000102af2795 exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000102855991 objc_exception_throw + 43 2 CoreFoundation 0x0000000102b83bad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x0000000102ae409d ___forwarding_ + 973 4 CoreFoundation 0x0000000102ae3c48 CF_forwarding_prep_0 + 120 5 myApp 0x0000000100005a28 -[InboxViewController prepareForSegue:sender:] + 472 6 UIKit 0x0000000101948302 -[UIStoryboardSegueTemplate _perform:] + 134 7 myApp 0x0000000100004f0b -[InboxViewController viewDidLoad] + 299 8 UIKit 0x00000001015a3fe4 -[UIViewController loadViewIfRequired] + 562 9 UIKit 0x00000001015c468d -[UINavigationController _layoutViewController:] + 44 10 UIKit 0x00000001015c4b9d -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 216 11 UIKit 0x00000001015c4c9d -[UINavigationController _startTransition:fromViewController:toViewController:] + 83 12 UIKit 0x00000001015c5a47 -[UINavigationController _startDeferredTransitionIfNeeded:] + 547 13 UIKit 0x00000001015c64f8 -[UINavigationController __viewWillLayoutSubviews] + 43 14 UIKit 0x00000001016da7e1 -[UILayoutContainerView layoutSubviews] + 202 15 UIKit 0x0000000101513b27 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 354 16 QuartzCore 0x0000000100fc1a22 -[CALayer layoutSublayers] + 151 17 QuartzCore 0x0000000100fb6589 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 363 18 QuartzCore 0x0000000100fc1956 -[CALayer layoutIfNeeded] + 162 19 UIKit 0x00000001015b3fc2 -[UIViewController window:setupWithInterfaceOrientation:] + 264 20 UIKit 0x00000001014f2b4d -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 4360 21 UIKit 0x00000001014f1a3f -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 36 22 UIKit 0x00000001014f198f -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 101 23 UIKit 0x00000001014f0c9e -[UIWindow _updateToInterfaceOrientation:duration:force:] + 377 24 UIKit 0x00000001015a7d4a -[UIViewController _tryBecomeRootViewControllerInWindow:] + 147 25 UIKit 0x00000001014eba87 -[UIWindow addRootViewControllerViewIfPossible] + 506 26 UIKit 0x00000001014ebbd5 -[UIWindow _setHidden:forced:] + 275 27 UIKit 0x00000001014f4ca2 -[UIWindow makeKeyAndVisible] + 51 28 UIKit 0x00000001014b30c8 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1449 29 UIKit 0x00000001014b6be8 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 660 30 UIKit 0x00000001014c7aab -[UIApplication handleEvent:withNewEvent:] + 3092 31 UIKit 0x00000001014c7f1e -[UIApplication sendEvent:] + 79 32 UIKit 0x00000001014b82be _UIApplicationHandleEvent + 618 33 GraphicsServices 0x00000001035c9bb6 _PurpleEventCallback + 762 34 GraphicsServices 0x00000001035c967d PurpleEventCallback + 35 35 CoreFoundation 0x0000000102a74819 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION_ + 41 36 CoreFoundation 0x0000000102a745ee __CFRunLoopDoSource1 + 478 37 CoreFoundation 0x0000000102a9dab3 __CFRunLoopRun + 1939 38 CoreFoundation 0x0000000102a9cf33 CFRunLoopRunSpecific + 467 39 UIKit 0x00000001014b64bd -[UIApplication _run] + 609 40 UIKit 0x00000001014b8043 UIApplicationMain + 1010 41 myApp 0x0000000100004db3 main + 115 42 libdyld.dylib 0x0000000104c3c5fd start + 1 43 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
1 Answer
Patrick Donahue
9,523 PointsIs the log out button hooked up to a method?