Skip to content

Instantly share code, notes, and snippets.

@edwardinubuntu
Created January 7, 2011 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardinubuntu/769959 to your computer and use it in GitHub Desktop.
Save edwardinubuntu/769959 to your computer and use it in GitHub Desktop.
load more
/*
* Begain to load
*/
- (void)load:(TTURLRequestCachePolicy)cachePolicy more:(BOOL)more {
if (!self.isLoading && TTIsStringWithAnyText(_searchQuery)) {
// ... Prepare the feed URL
// ... Use TTURLRequest
// ... Use TTURLXMLResponse to use with response
// ... Request send
}
}
/*
* Collecting feed items
*/
- (void)requestDidFinishLoad:(TTURLRequest*)request {
// ... Use TTURLXMLResponse for request.response
// ... Get the NSDictionary contains all the RSS data
// ... Trace into and get the RSSFeed data add to feedItems
// ... Set feedItems to feeds
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment