How to display data from an RSS feed in parts of the Iphone application

I display RSS feeds in my table view. since there are hundreds of channels, so my application takes a long time to download them and display them. I want to download only the first 25 channels and display them in a table, and when the user clicks on “More than 25 applications”, downloads the next 25 and displays them. Any ideas ........... :) I am using TouchXML to parse an XML feed.

+3
source share
3 answers

It depends on the web service that the RSS feed provides you with. If you can request them to download only 25 channels, then the server side is fine

Now this is the client side, you need a UITableView, as usual. In the delegate method, numberOfRowsyou return 25 (you also need +1 for the last cell) and show the first 25 feeds. At the bottom of the table, the view of the last cell may be a cell with the text "Load more", then here you started to load more

You can also put RSS feed parsing and parsing into a stream, this will increase your productivity.

+1
source

, , arry... - 25, , , , 25 tableview.

" ", .

0

Take a look at the SeixmicXML example and the LazyTableImages sample code on the Apple Developer website. They use streams (NSOperation) to parse batches of data and load them in a table.

0
source

Source: https://habr.com/ru/post/1765993/


All Articles