Created
December 14, 2012 18:56
-
-
Save ethanmick/4287674 to your computer and use it in GitHub Desktop.
Login socially with the CloudMine iOS framework.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In MyLoginViewController.m | |
- (IBAction)loginWithSocial { | |
// Don't need username/password because we are logging in socially. | |
CMUser *myNewUser = [[CMUser alloc] init]; | |
[myNewUser loginWithSocialNetwork:CMSocialNetworkTwitter viewController:self params:nil callback:^(CMUserAccountResult resultCode, NSArray *messages) { | |
if (resultCode == CMUserAccountLoginSucceeded) { | |
NSLog(@"We have successfully logged in!"); | |
} | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment