哪个是在iphone中解析RSS源的最佳方法

Nik*_*hnu 1 iphone ios

我想为博客制作一个iphone应用程序.哪个是从博客解析RSS源的最佳方法.

Sno*_*uin 6

只需使用这个MWFeedParser

https://github.com/mwaterfall/MWFeedParser

在RootViewController文件中,在(void)viewDidLoad下编辑该行,并输入您的完整URL

NSURL *feedURL = [NSURL URLWithString:http://www.YOUR_URL_HERE.com/whateverRSS"];
Run Code Online (Sandbox Code Playgroud)

另一个好的解析器来自Ray Wenderlich http://www.raywenderlich.com/2636/how-to-make-a-simple-rss-reader-iphone-app-tutorial

我实际上结合了2,因为我喜欢MWFeedParser的解析,但Ray's去了UIWebView而不是Safari,这个链接描述了如何结合 MWFeedParser应用内网页浏览器INSTEAD的safari