Skip to content

Instantly share code, notes, and snippets.

@joshtwist
Created April 8, 2013 07:18
Show Gist options
  • Select an option

  • Save joshtwist/5334856 to your computer and use it in GitHub Desktop.

Select an option

Save joshtwist/5334856 to your computer and use it in GitHub Desktop.
- (void)viewDidAppear:(BOOL)animated
{
MSClient *client = self.todoService.client;
if (client.currentUser != nil) {
return;
}
[client loginWithProvider:@"twitter" controller:self animated:YES completion:^(MSUser *user, NSError *error) {
[self.todoService loadProducts:^{
[self refresh];
}];
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment