我在ios中製作新聞應用程序。爲此,我需要從RSS 獲取圖像使用目標C如何從RSS提要中提取圖像src
這些出現在RSS提要的節點(見下例)
<description> <![CDATA[ <div><img width="745" height="410" src="http://thisisthelink.com/to_my_image.jpg" class="attachment-large wp-post-image" alt="alt tag" style="margin-bottom: 15px;" /></div>Good morning. Normally Friday is a busy day as we prepare for the weekend’s game. Arsene Wenger holds his press conference, we get the latest team news and so on,... ]]> </description>
我目前得到<title> and <content>
沒有問題,但我需要提取圖像源,以便將其放入我的imageView中,然後放入我的TableRow中。
這是想什麼,我從上面的
http://thisisthelink.com/to_my_image.jpg
不知道如何着手幫我出這個.. 此外,我不知道到修剪字符串如何在我的應用程序中包含日曆,以便用戶可以在任何特定日期獲取數據。