Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here is my "PFSignUpViewController" code:
- <pre> #pragma mark - PFSignUpViewControllerDelegate
- // Sent to the delegate to determine whether the sign up request should be submitted to the server.
- - (BOOL)signUpViewController:(PFSignUpViewController *)signUpController shouldBeginSignUp:(NSDictionary *)info {
- BOOL informationComplete = YES;
- for (id key in info) {
- NSString *field = [info objectForKey:key];
- if (!field || field.length == 0) {
- informationComplete = NO;
- break;
- }
- }
- if (!informationComplete) {
- [[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Fehlende Informationen", nil) message:NSLocalizedString(@"Stelle sicher das du alle Felder ausgefüllt hast!", nil) delegate:nil cancelButtonTitle:NSLocalizedString(@"OK", nil) otherButtonTitles:nil] show];
- }
- return informationComplete;
- }
- // Sent to the delegate when a PFUser is signed up.
- // Sent to the delegate when the sign up attempt fails.
- - (void)signUpViewController:(PFSignUpViewController *)signUpController didFailToSignUpWithError:(NSError *)error {
- NSLog(@"Failed to sign up...");
- }
- // Sent to the delegate when the sign up screen is dismissed.
- - (void)signUpViewControllerDidCancelSignUp:(PFSignUpViewController *)signUpController {
- NSLog(@"User dismissed the signUpViewController")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement