RBSwitchContainerView Class Reference

Inherits from UIView
Declared in RBSwitchContainerView.h

Overview

A container of views that can be switched.

  currentView

Gets or sets the currently displayed view, or nil if no view is currently displayed.

@property (nonatomic, nullable) UIView *currentView

Declared In

RBSwitchContainerView.h

  viewCount

The number of views in the container.

@property (nonatomic, readonly) NSUInteger viewCount

Declared In

RBSwitchContainerView.h

– viewAtIndex:

Gets the child view at the given index.

- (nonnull UIView *)viewAtIndex:(NSUInteger)index

Parameters

index

The index of the child view.

Return Value

The retrieved child view.

Declared In

RBSwitchContainerView.h

– addView:

Add a new child view to the container.

- (void)addView:(nonnull UIView *)view

Parameters

view

The child view.

Declared In

RBSwitchContainerView.h

– removeView:

Remove the child view.

- (void)removeView:(nonnull UIView *)view

Parameters

view

The child view.

Declared In

RBSwitchContainerView.h