Created
June 25, 2014 17:57
-
-
Save jault3/f65ecc69603394170643 to your computer and use it in GitHub Desktop.
Log In
This file contains 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:(id)sender { | |
[CatalyzeUser logInWithUsernameInBackground:_txtUsername.text password:_txtPassword.text block:^(int status, NSString *response, NSError *error) { | |
if (error) { | |
[[[UIAlertView alloc] initWithTitle:@"Error" message:@"Invalid username / password" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil] show]; | |
} else { | |
[self.navigationController pushViewController:[[HealthTrackerViewController alloc] initWithNibName:nil bundle:nil] animated:YES]; | |
} | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment