RSSKit is an easy-to use iOS framework to make RSS feed processing simple. It consists of only 5 small classes, so it's extremely lightweight yet powerful. It supports both the RSS 2.0 and the Atom 1.0 feed formats.
How to use the framework
Define a class which conforms to the RSSParserDelegate protocol, i. e.:
@interface MyParserDelegate: NSObject <RSSParserDelegate>
Instantiate an RSSParser object using an NSString with an URL containing a valid RSS/Atom feed; e. g.
RSSParser *parser = [[RSSParser alloc] initWithUrl:@"http://example.com/feed" synchronous:NO];
Set an instance of your freshly declared deleate class as the parser's delegate, that is:
MyParserDelegate *theDelegateObject = [[MyParserDelegate alloc] init]; parser.delegate = theDelegateObject;
rssParser:parsedFeed:method in your delegate class. As the 2nd parameter it'll be passed an
RSSFeedinstance. The properties of this class are named meaningfully; the articles property will contain an
RSSEntryobjects, representing the items/summaries of the feed, respectively (this class also has obviously-named properties).