Skip to content

Instantly share code, notes, and snippets.

@gonzalezreal
Created October 24, 2012 06:19
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 gonzalezreal/3944335 to your computer and use it in GitHub Desktop.
Save gonzalezreal/3944335 to your computer and use it in GitHub Desktop.
- (BOOL)loadNewTweetsWithCompletionHandler:(void (^)(NSError *error))completionHandler
{
if (self.loading) {
return NO;
}
SLRequest *request = [self requestForNewTweets];
[self loadTweetsWithRequest:request completionHandler:completionHandler];
return YES;
}
- (BOOL)loadOldTweetsWithCompletionHandler:(void (^)(NSError *error))completionHandler
{
if (self.loading) {
return NO;
}
SLRequest *request = [self requestForOldTweets];
[self loadTweetsWithRequest:request completionHandler:completionHandler];
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment