STPCoreViewController

@interface STPCoreViewController : UIViewController

This is the base class for all Stripe view controllers. It is intended for use only by Stripe classes, you should not subclass it yourself in your app.

It theming, back/cancel button management, and other shared logic for Stripe view controllers.

  • A convenience initializer; equivalent to calling initWithTheme:[STPTheme defaultTheme].

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    convenience init()
  • Initializes a new view controller with the specified theme

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTheme:(nonnull STPTheme *)theme;

    Swift

    init(theme: STPTheme)

    Parameters

    theme

    The theme to use to inform the view controller’s visual appearance. - see: STPTheme

  • Passes through to the default UIViewController behavior for this initializer, and then also sets the default theme as in init

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNibName:(nullable NSString *)nibNameOrNil
                                     bundle:(nullable NSBundle *)nibBundleOrNil;

    Swift

    init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
  • Passes through to the default UIViewController behavior for this initializer, and then also sets the default theme as in init

    Declaration

    Objective-C

    - (nullable instancetype)initWithCoder:(nonnull NSCoder *)aDecoder;

    Swift

    init?(coder aDecoder: NSCoder)