Created
April 1, 2014 13:59
-
-
Save funkyboy/9914530 to your computer and use it in GitHub Desktop.
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
| - (IBAction) login { | |
| NSLog(@"login"); | |
| BAAClient *client = [BAAClient sharedClient]; | |
| [client authenticateUser:self.loginUsernameField.text | |
| password:self.loginPasswordField.text | |
| completion:^(BOOL success, NSError *error) { | |
| if (success) { | |
| NSLog(@"user authenticated %@", client.currentUser); | |
| [self dismissViewControllerAnimated:YES completion:nil]; | |
| } else { | |
| NSLog(@"error in logging in %@", error); | |
| } | |
| }]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment