To let you know from the beginning, I am a newbie at iPhone development, and I have taken an a monstrous task.
First of all, I am writing an application that allows to you to online shop. We have an affiliate account with a known online shopping website, are trying to tie our app into searching that site, and putting the results into a table, with hyperlinks to the site, etc.
But first problems first, one thing at a time:
In Interface Builder, I have a Search Bar, and an outlet connected to the search bar. I also have an IBAction made just to take the text that is entered into the search bar, storing it into a variable, and then searching this website (yes, that's a lot of stuff for an action).
Because I am so new at this process with IB, how do I connect the Search Bar with the IBAction? I know, stupid question.
I'm assuming the IBAction method and the IBOutlet property (searchbar) are declared in the same class/viewcontroller. If so, simply use the name that you've given to the property.
Thanks for the help, guys! I do think that I am still missing something rather crucial. I visited the iOS Application Programming guide, and this is what I have in the implementation file.
But I am with you on it being something in IB, and something that is not connected correctly. I am just currently trying something simple, when the Search Button is clicked, load the next NIB file. That way, I'll know that I have the right code in the right method.
You've been a HUGE help so far! If you need any more information, please let me know! Thanks so much!
Yes, I do have that exactly.
It's almost as if the send button on the firstResponder does nothing, or is not tied to the searchBarSearchButtonClicked method.
The only code that I have in that method currently is just pulling up a website in a new NIB, just to make sure that the button works.
I really hope that this thread doesn't frustrate you so much that you can't help. Thanks so much for your time!