Skip to content

Instantly share code, notes, and snippets.

@jault3
Created June 25, 2014 17:57
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 jault3/f65ecc69603394170643 to your computer and use it in GitHub Desktop.
Save jault3/f65ecc69603394170643 to your computer and use it in GitHub Desktop.
Log In
- (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