I am trying to implement a search tool on my iPhone, when i enter a text it will be send to the google for searching. and return the result.
I need to know how the text is given to the Google search engine and how the google is returning the result? Is it in the XML format or JSON.
I can then parse the result XML/JSON on my iPhone and want to display the results in my table view. Any idea? need Help...!
Thanks in advance,
Shibin
either / or / any
One approach would be to use the google REST search API which returns JSON
http://googlesystem.blogspot.com/2008/04/google-search-rest-api.html
Related
i am new in json parsing .I don't know how to send data to server[http://www.google.com/ig/calculator?] by use of textfield according to user input. And whatever result will come by server how will i display that data on my result label .
There is no official feature included in the SDK for parsing JSON. Have a look at the JSON Framework. Instructions are at the bottom of the page.
(Also just noticed that you asked something simliar an hour ago).
I have seen some tutorials on the subject, but they all go half into it and then leave a person wondering.
How can I stream an rss feed into an iphone app.
I know the xml should be read in, parsed etc.
But then I am not sure how to display the information I need like, images, embedded videos etc.
If someone could just point me in the right direction I would be extremely grateful.
Thanks in advance
First, you need some type of XML parser. You can use the built in NSXMLParser or a slew of other parsers that you will need to download. Each have their pros/cons depending on what type of reading/writing you will be doing with your RSS feed.
To display the data, I would recommend a tableView. You can create custom UITablvewCells for each cell to hold the data however you want to display it. There are several tutorials available for that if you want to Google for it.
As for data, read all the RSS data into an array you create and have the tableView access that array.
Again, there are many online tutorials for this already but it seems like you need help with displaying the data. A quick Google lookup for how to create custom UITableViewCells should provide you lots of helpful links. Good luck.
I am trying to read a PDF on iPhone, I got to know that we can get the info about PDF from CGPDFDocumentGetCatalog method. But, this method returns a CGPDFDictionaryRef. I have browsed through the documentation and didn't find any method to extract its Key/Values. Please help me if anybody has solution for the problem. Or you can tell if we can have any other way to extract data from PDFs.
It seems that you have to extract the names of the values first. Take a look to this site especially the allScriptsInPDFDocument method
I have just checked out the documentation and it has a load of functions for getting key value pairs. If you don't know what the keys are you can use CGPDFDictionaryApplyFunction to with an appropriate callback.
Alternatively, check out the PDF Specification for a detailed description of the catalog (section 7.7.2).
iam developing RSS Reader, i need to get the items from the given Feed URL.I used Touch XML for this, but this is very slow.Is there any faster way? thanks.
NSXMLParser is the raw XML parser
Is there an Iphone SDK API to search resource files?
I have a set of html file resources that I'd like the user to be able to search in, but I want to avoid reading the files into memory and searching them one by one.
Is there any API that can help me do this?
No, you'll have to read the files in to search them. There's nothing like "Spotlight" on the phone.
I would suggest you using SQLite FTS3 extension for full text search through your documents. It has quite good capabilities for it. But you will need to strip HTML tags first so it can index only your text and don't bother with tags