Removing headerView.xib


#1

I have been following along in the third edition and on page 237, it tells you to remove some of the code as well as remove the headerView.xib all together. In doing this, -(IBAction)addNewItem:(I’d)sender (which is to remain in the code) Is no longer connected to anything. I am confused as to where the connection is to take place from here. Can anyone help me out on this one?


#2

I also have this problem.
My app crashes due to an exception when clicking on the + button (new item) in the navigation bar:

2013-09-21 15:59:53.784 Homepwner[1093:11303] -[ItemsViewController addNewItem:]: unrecognized selector sent to instance 0x714f810
2013-09-21 15:59:53.787 Homepwner[1093:11303] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[ItemsViewController addNewItem:]: unrecognized selector sent to instance 0x714f810’
*** First throw call stack:
(0x1c96012 0x10d3e7e 0x1d214bd 0x1c85bbc 0x1c8594e 0x10e7705 0x1b2c0 0x257a64 0x10e7705 0x1b2c0 0x1b258 0xdc021 0xdc57f 0xdb6e8 0x4acef 0x4af02 0x28d4a 0x1a698 0x1bf1df9 0x1bf1ad0 0x1c0bbf5 0x1c0b962 0x1c3cbb6 0x1c3bf44 0x1c3be1b 0x1bf07e3 0x1bf0668 0x17ffc 0x29bd 0x28e5 0x1)
libc++abi.dylib: terminate called throwing an exception

HELP!


#3

[quote=“Landre”]I also have this problem.
My app crashes due to an exception when clicking on the + button (new item) in the navigation bar:

2013-09-21 15:59:53.784 Homepwner[1093:11303] -[ItemsViewController addNewItem:]: unrecognized selector sent to instance 0x714f810
2013-09-21 15:59:53.787 Homepwner[1093:11303] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[ItemsViewController addNewItem:]: unrecognized selector sent to instance 0x714f810’
*** First throw call stack:
(0x1c96012 0x10d3e7e 0x1d214bd 0x1c85bbc 0x1c8594e 0x10e7705 0x1b2c0 0x257a64 0x10e7705 0x1b2c0 0x1b258 0xdc021 0xdc57f 0xdb6e8 0x4acef 0x4af02 0x28d4a 0x1a698 0x1bf1df9 0x1bf1ad0 0x1c0bbf5 0x1c0b962 0x1c3cbb6 0x1c3bf44 0x1c3be1b 0x1bf07e3 0x1bf0668 0x17ffc 0x29bd 0x28e5 0x1)
libc++abi.dylib: terminate called throwing an exception

HELP![/quote]

Ok, got it… I unintentionally deleted the method:
-(IBAction)addNewItem:(id)sender
in ItemsViewController.m