SBSDKUIViewController

@interface SBSDKUIViewController : UIViewController

Abstract base class for SBSDKUI view controllers. Do not use/subclass directly.

  • If set to YES, the receiver shows the status bar. Otherwise the status bar is hidden.

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldShowStatusBar;

    Swift

    var shouldShowStatusBar: Bool { get set }
  • Style of the status bar.

    Declaration

    Objective-C

    @property (nonatomic) UIStatusBarStyle statusBarStyle;

    Swift

    var statusBarStyle: UIStatusBarStyle { get set }
  • The receiver automatically hides the home indicator if set to YES. Does only apply to devices with no home button.

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldHideHomeIndicator;

    Swift

    var shouldHideHomeIndicator: Bool { get set }
  • Dismisses the receiver. Subclasses should override here and call its delegates.

    Declaration

    Objective-C

    - (void)dismiss:(BOOL)cancelled;

    Swift

    func dismiss(_ cancelled: Bool)

    Parameters

    cancelled

    Whether the receiver was cancelled or finished.

  • Automatically closes the receiver if possible. If the receiver is the topViewController of a UINavigationController this method pops the receiver from the navigation stack. If the receiver is presented modally it is dismissed.

    Declaration

    Objective-C

    - (void)didFinish;

    Swift

    func didFinish()
  • Automatically closes the receiver if possible. If the receiver is the topViewController of a UINavigationController this method pops the receiver from the navigation stack. If the receiver is presented modally it is dismissed.

    Declaration

    Objective-C

    - (void)didCancel;

    Swift

    func didCancel()