PFSignUpViewControllerDelegate

@protocol PFSignUpViewControllerDelegate <NSObject>

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

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

    Declaration

    Objective-C

    - (BOOL)signUpViewController:(nonnull PFSignUpViewController *)signUpController
               shouldBeginSignUp:
                   (nonnull NSDictionary<NSString *, NSString *> *)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.

  • Sent to the delegate when a PFUser is signed up.

    Declaration

    Objective-C

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

    Parameters

    signUpController

    The signup view controller where signup finished.

    user

    PFUser object that is a result of the sign up.

  • Sent to the delegate when the sign up attempt fails.

    Declaration

    Objective-C

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

    Parameters

    signUpController

    The signup view controller where signup failed.

    error

    NSError object representing the error that occured.

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

    Declaration

    Objective-C

    - (void)signUpViewControllerDidCancelSignUp:
            (nonnull PFSignUpViewController *)signUpController;

    Parameters

    signUpController

    The signup view controller where signup was cancelled.