Posts by Mossiah Palmer

26 Nov 2009, 22:21
Generic-user-small

Mossiah Palmer (2 posts)

(from Writing Your First iPhone Application > Thanks for the swift delivery - Am I missing something obvious?)

Firstly, thank you for swiftly delivering my bumper box of books. I didn’t expect the international delivery to arrive so quickly!!

My problem, I had hoped that reading through the Tab Bar section of the book I would understand why I am getting issues in an app i have written.

I have a tabbar with navigation controllers on 4 of the 5 tabs, but the first tab “home screen” has a regular view controller. Whenever i add a button to this view controller in IB, create the IBAction and wire it up, all appears well. As soon as i try to click the button i get an error:

2009-11-26 22:16:44.474 ArtisteInfo[9218:20b] *** -[UIViewController myAction]: unrecognized selector sent to instance 0x4523a70<br />2009-11-26 22:16:44.475 ArtisteInfo[9218:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIViewController myAction]: unrecognized selector sent to instance 0x4523a70'

I’m sure it’s something silly that i’ve overlooked but i cannot see it.

I suspect it’s something to do with me not wiring the class of that tab to “HomeViewController” but that option doesn’t appear in the drop down box in the identity inspector?

29 Nov 2009, 01:56
Generic-user-small

Mossiah Palmer (2 posts)

(from Writing Your First iPhone Application > Thanks for the swift delivery - Am I missing something obvious?)

Thanks for the swift reply. I’m not quite sure where i should be looking to see the ‘little yellow triangle’ but thank you for the help.

I went away with renewed motivation and cracked it. For any other that might be gettign a similar error. For me it appeared that i was trying to class the tab button to the view not the actual view itself – all other tab bar buttons in my app point to navigation controllers and are therefore classed at the button as well, i could not see the difference.

Ok, now that’s done.. onto the problematic iTunes link.. happy coding.. :)

2 posts