I’ve found several tutorials for making iphone apps that load data from an RSS feed, but they only extract the URL and then load the page from the internet in a WebView.
However, I would rather be able to extract the body text and pictures from the articles, so I can lay out the content myself with a design optimized for the iPhone.
Is this possible?
EDIT:
I found this code from another question, which, from what I interpreted, is supposed to return the source code of the page as a string.
NSError *error = nil;
NSString *locationString = [NSString stringWithContentsOfURL:[NSURL URLWithString:urlString] encoding:NSUTF8StringEncoding error:&error];
If I use this, parse the string for the code that contains the body text and pictures, I should be able to get what I want. Would this be a good solution?
Yes, it’s technically possible. RSS is XML so use any XML parser you like on it to extract information. The real struggle will be working with what you have vs. what the design calls for. But to get started, just grab some example feeds and start hacking away at them with any parsers you’d like to try. NSXMLParser is built in, there are other good third party ones like RaptureXML.