Checklist- Add Item Screen Error

This error appears when I try to run the app on pg. 77.

There’s so many view controllers, I may have selected the wrong table view controller when it states on pg. 76 the following below. That’s my guess anyhow.

In the storyboard, select the table view controller and go to the Identity inspector. Under Custom Class, type AddItemViewController.

The message from the debugger is below:

2016-07-01 23:30:00.430 Checklists[3050:249541] Unknown class AddItemViewController in Interface Builder file.
2016-07-01 23:30:01.471 Checklists[3050:249541] -[UITableViewController done]: unrecognized selector sent to instance 0x7fc711c32380
2016-07-01 23:30:01.475 Checklists[3050:249541] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UITableViewController done]: unrecognized selector sent to instance 0x7fc711c32380’
*** First throw call stack:
(
0 CoreFoundation 0x000000010ff71d85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000111d15deb objc_exception_throw + 48
2 CoreFoundation 0x000000010ff7ad3d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010fec0cfa forwarding + 970
4 CoreFoundation 0x000000010fec08a8 _CF_forwarding_prep_0 + 120
5 UIKit 0x000000011079ba8d -[UIApplication sendAction:to:from:forEvent:] + 92
6 UIKit 0x0000000110ba9067 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 152
7 UIKit 0x000000011079ba8d -[UIApplication sendAction:to:from:forEvent:] + 92
8 UIKit 0x000000011090ee67 -[UIControl sendAction:to:forEvent:] + 67
9 UIKit 0x000000011090f143 -[UIControl _sendActionsForEvents:withEvent:] + 327
10 UIKit 0x000000011090f2be -[UIControl _sendActionsForEvents:withEvent:] + 706
11 UIKit 0x000000011090e263 -[UIControl touchesEnded:withEvent:] + 601
12 UIKit 0x000000011080e99f -[UIWindow _sendTouchesForEvent:] + 835
13 UIKit 0x000000011080f6d4 -[UIWindow sendEvent:] + 865
14 UIKit 0x00000001107badc6 -[UIApplication sendEvent:] + 263
15 UIKit 0x0000000110794553 _UIApplicationHandleEventQueue + 6660
16 CoreFoundation 0x000000010fe97301 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
17 CoreFoundation 0x000000010fe8d22c __CFRunLoopDoSources0 + 556
18 CoreFoundation 0x000000010fe8c6e3 __CFRunLoopRun + 867
19 CoreFoundation 0x000000010fe8c0f8 CFRunLoopRunSpecific + 488
20 GraphicsServices 0x0000000114607ad2 GSEventRunModal + 161
21 UIKit 0x0000000110799f09 UIApplicationMain + 171
22 Checklists 0x000000010fd87ed2 main + 114
23 libdyld.dylib 0x00000001127d992d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Your guess sounds very likely. :wink: The error message says “UITableViewController done”, which means the app does not understand that you wanted to use the class AddItemViewController for this UITableViewController.

Solved! AddItemViewController had to be on Add Item Scene.