1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/geekcj-RSSKit

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
README.html 1.5 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
H2CO3 Отправлено 22.12.2011 01:31 e69cf0b
<h1>RSSKit</h1>
<hr />
<p>
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.
</p>
<br>
<h2>How to use the framework</h2>
<ol>
<li><pre><tt><code>#import &lt;RSSKit/RSSKit.h&gt;</code></tt></pre></li>
<li>Define a class which conforms to the <tt>RSSParserDelegate</tt> protocol, i. e.: <code><pre><tt>@interface MyParserDelegate: NSObject &lt;RSSParserDelegate&gt; </tt></pre></code></li>
<li>Instantiate an <tt>RSSParser</tt> object using an NSString with an URL containing a valid RSS/Atom feed; e. g. <code><tt><pre>RSSParser *parser = [[RSSParser alloc] initWithUrl:@&quot;http://example.com/feed&quot; synchronous:NO];</pre></tt></code></li>
<li>Set an instance of your freshly declared deleate class as the parser's delegate, that is: <code><tt><pre>MyParserDelegate *theDelegateObject = [[MyParserDelegate alloc] init];
parser.delegate = theDelegateObject;</pre></tt></code></li>
<li>Call <code><tt><pre>[parser parse];</pre></tt></code></li>
<li>Implement the <tt>rssParser:parsedFeed:</tt> method in your delegate class. As the 2nd parameter it'll be passed an <tt>RSSFeed</tt> instance. The properties of this class are named meaningfully; the <tt>articles</tt> property will contain an <tt>NSArray</tt> of <tt>RSSEntry</tt> objects, representing the items/summaries of the feed, respectively (this class also has obviously-named properties).</li>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/geekcj-RSSKit.git
git@api.gitlife.ru:oschina-mirror/geekcj-RSSKit.git
oschina-mirror
geekcj-RSSKit
geekcj-RSSKit
master