Incomplete Implementation


#1

I’m new to iOS programming and I’ve completed chapter 5 and at the end of the chapter before the challenges, I compile and run the app and when I get to the section where I enter the name of the location and tap “done”, it terminates.

I get this error message in the console:

2012-08-30 22:04:52.100 WhereAmI[3873:707] -[WhereamiViewController findLocation]: unrecognized selector sent to instance 0x138cb0
2012-08-30 22:04:52.173 WhereAmI[3873:707] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[WhereamiViewController findLocation]: unrecognized selector sent to instance 0x138cb0’
*** First throw call stack:
(0x3742688f 0x3512b259 0x37429a9b 0x37428915 0x37383650 0xcac7f 0x31215cbd 0x31215c1f 0x31215bb9 0x31214b5b 0x31214ae1 0x31213775 0x313ad8a3 0x31211dcd 0x312110fd 0x3111492b 0x31114319 0x310fa695 0x310f9f3b 0x33b3c22b 0x373faad3 0x373fa29f 0x373f9045 0x3737c4a5 0x3737c36d 0x33b3b439 0x31128cd5 0xca16d 0xca108)
terminate called throwing an exception(lldb)

When I look at the code, everything looks OK. Except for in WhereamiViewController.m, the line: @implementation WhereamiViewController, there is a yellow alert sign and it reads “Incomplete implementation”.

I’m sure I’m missing something simple, but could someone help please?

Many thanks!


#2

I should note that I’m running Xcode 4.4.1 on OS X 10.8.1


#3

Xcode has given you crucial clues:[color=#FF0000]unrecognized selector[/color] and [color=#FF0000]Incomplete implementation[/color]

Check to make sure that you have implemented the method findLocation in WhereamiViewController.


#4

Thank you. I found it. I did implement the method in WhereamiViewController, however, I misspelled “findLocation”. I accidentally typed it as “findLoctaion”

Spelling counts!

Thanks