PFLogInView

@interface PFLogInView : UIScrollView

The PFLogInView class provides a standard log in interface for authenticating a PFUser.

  • Initializes the view with the specified log in elements.

    See

    PFLogInFields

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFields:(PFLogInFields)fields;

    Parameters

    fields

    A bitmask specifying the log in elements which are enabled in the view

    Return Value

    An initialized PFLogInView object or nil if the object couldn’t be created.

  • The view controller that will present this view.

    Used to lay out elements correctly when the presenting view controller has translucent elements.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable)
        UIViewController *presentingViewController;
  • The logo. By default, it is the Parse logo.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UIView *logo;
  • If email should be used to log in, instead of username

    By default, this is set to NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL emailAsUsername;
  • The bitmask which specifies the enabled log in elements in the view.

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) PFLogInFields fields;
  • The username text field. It is nil if the element is not enabled.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) PFTextField *usernameField;
  • The password text field. It is nil if the element is not enabled.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) PFTextField *passwordField;
  • The password forgotten button. It is nil if the element is not enabled.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable)
        UIButton *passwordForgottenButton;
  • The log in button. It is nil if the element is not enabled.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) UIButton *logInButton;
  • The Facebook button. It is nil if the element is not enabled.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) UIButton *facebookButton;
  • The Twitter button. It is nil if the element is not enabled.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) UIButton *twitterButton;
  • The sign up button. It is nil if the element is not enabled.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) UIButton *signUpButton;
  • It is nil if the element is not enabled.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) UIButton *dismissButton;
  • The facebook/twitter login label.

    @deprecated This property is deprecated and will always be nil.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) UILabel *externalLogInLabel;
  • The sign up label.

    @deprecated This property is deprecated and will always be nil.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) UILabel *signUpLabel;