Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ljg93

macrumors member
Original poster
Mar 13, 2011
98
0
Hello,

There is a website that I am working with. They have a search engine within their site, I am wondering what is the easiest way to go about making the app work like it does on the website. (where a user enters text on a search bar and results come up that are related to the search term)

Thanks.
 
I know next to nothing on the topic, but my non helpful answer that I'll give while you wait for someone else who knows more to answer is this:

Look into SQLite.

I'm not totally sure what it is, but I think reading up on it might help you. Maybe not.
 
This usually works through a web service. Does the web site have a REST api or some other web service to access their search feature?
 
Well, then hook up a Rest Call to your UISearchBar?
It really isn't that hard.
The first thing you need to do is (in my guess).
Create object models for your app, like "Object", give it the value's you need it to have, title, url, thumbnail. Whatever.
Then create an XMLParser that will parse through those whenever you open the app and save them in an array, save them via a Singleton class, so your whole app has acces.
Then on your searchbar, you just scan your text inside the array.
Tadaaa :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.