PFSignUpViewControllerDelegate Protocol Reference

Conforms to NSObject
Declared in PFSignUpViewController.h

Overview

The PFLogInViewControllerDelegate protocol defines methods a delegate of a PFSignUpViewController should implement. All methods of this protocol are optional.

Customizing Behavior

– signUpViewController:shouldBeginSignUp:

Sent to the delegate to determine whether the sign up request should be submitted to the server.

- (BOOL)signUpViewController:(PFSignUpViewController *)signUpController shouldBeginSignUp:(NSDictionary *)info

Parameters

signUpController

The signup view controller that is requesting the data.

info

An NSDictionary instance which contains all sign up information that the user entered.

Return Value

A BOOL indicating whether the sign up should proceed.

Declared In

PFSignUpViewController.h

Responding to Actions

– signUpViewController:didSignUpUser:

Sent to the delegate when a PFUser is signed up.

- (void)signUpViewController:(PFSignUpViewController *)signUpController didSignUpUser:(PFUser *)user

Parameters

signUpController

The signup view controller where signup finished.

user

PFUser object that is a result of the sign up.

Declared In

PFSignUpViewController.h

– signUpViewController:didFailToSignUpWithError:

Sent to the delegate when the sign up attempt fails.

- (void)signUpViewController:(PFSignUpViewController *)signUpController didFailToSignUpWithError:(nullable NSError *)error

Parameters

signUpController

The signup view controller where signup failed.

error

NSError object representing the error that occured.

Declared In

PFSignUpViewController.h

– signUpViewControllerDidCancelSignUp:

Sent to the delegate when the sign up screen is cancelled.

- (void)signUpViewControllerDidCancelSignUp:(PFSignUpViewController *)signUpController

Parameters

signUpController

The signup view controller where signup was cancelled.

Declared In

PFSignUpViewController.h