PSPDFStatefulTableViewController

Objective-C


@interface PSPDFStatefulTableViewController
    : PSPDFBaseTableViewController <PSPDFStatefulViewControlling>

Swift

class StatefulTableViewController : BaseTableViewController, StatefulViewControlling

An abstract class for a controller that manages a table view or shows a label when there is no content for the table view.

  • Empty view.

    Declaration

    Objective-C

    @property (nonatomic, nullable) UIView *emptyView;

    Swift

    var emptyView: UIView? { get set }
  • Loading view.

    Declaration

    Objective-C

    @property (nonatomic, nullable) UIView *loadingView;

    Swift

    var loadingView: UIView? { get set }
  • Receives the current controller state.

    Note

    This is KVO observable.

    Declaration

    Objective-C

    @property (nonatomic) PSPDFStatefulViewState controllerState;

    Swift

    var controllerState: StatefulViewState { get set }
  • Sets the controller state and shows/hides the emptyView/loadingView depending on the state.

    Declaration

    Objective-C

    - (void)setControllerState:(PSPDFStatefulViewState)controllerState
                      animated:(BOOL)animated;

    Swift

    func setControllerState(_ controllerState: StatefulViewState, animated: Bool)