January 11, 2012 · 0 Comments
appsFrameworkRSS
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title>台灣房屋最新訊息</title> <navigationController.navigationBar.tintColor>f5821fff</navigationController.navigationBar.tintColor> <background>bg.png</background> <BackgroundColor>00000000<BackgroundColor> <TableViewBackgroundColor>00000000</TableViewBackgroundColor> <appslink_type>appsFrameworkRSS</appslink_type> <TableViewSizeHeight>NULL</TableViewSizeHeight> <item> <cell_type>appsUITableViewController_cell1</cell_type> <title>台灣房屋最新訊息</title> <TextColor>111111FF</TextColor> <appslink url="http://m.twhg.com.tw/data/rss.xml" type="appsFrameworkRSS"></appslink> <cell_type>appsUITableViewController_cell3</cell_type> </item> </channel> </rss>
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title>好消息電視GoodTV 最新訊息</title> <link></link> <description></description> <language>en-us</language> <managingEditor></managingEditor> <webMaster></webMaster> <pagebackgroupimage>xxx.png</pagebackgroupimage> <diyapps>appinfo</diyapps> <default>defaul320x431.png</default> <item> <cell_type>appsUITableViewController_cell1</cell_type> <title>PowenKo.com News</title> <TextColor>111111FF</TextColor> <appslink url="http://www.powenko.com/wordpress/?feed=rss2" type="appsFrameworkRSS"></appslink> </item> </channel> </rss>
android:
bug list:
#. icon cannot asset.
iphone:
#. no icon.
appsFrameworkRSS class
是透過
- (id)GetRSSData:(NSString*)i_URL i_name:(NSString *)i_name2
取讀RSS 得資料,
並在
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
做顯示
點選內容的時候,是呼叫
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
然後到 ViewDetail class 顯示最新訊息