STPCoreViewController
Objective-C
@interface STPCoreViewController : UIViewController
Swift
class 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()
-
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)