Skip to content

Instantly share code, notes, and snippets.

@akisute
Created March 17, 2013 05:38
Show Gist options
  • Save akisute/5180299 to your computer and use it in GitHub Desktop.
Save akisute/5180299 to your computer and use it in GitHub Desktop.
いくばくかマシに
- (void)signUpViewController:(PFSignUpViewController *)signUpController didFailToSignUpWithError:(NSError *)error
{
DNSLogError(@"Error while signing up: %@", error);
UIAlertView *alertView = [[UIAlertView alloc] init];
alertView.title = @"Error while sigining up";
alertView.message = error.localizedDescription;
[alertView addButtonItem:[RIButtonItem itemWithLabel:@"OK" action:^{
dispatch_async(dispatch_get_main_queue(), ^{
[self dismissViewControllerAnimated:YES completion:NULL];
});
}]];
[alertView show];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment