RBCollapsibleContainerView Class Reference

Inherits from UIView
Conforms to RBCollapsibleContainerHandleDelegate
Declared in RBCollapsibleContainerView.h

Overview

Provides a view container with a header that can expand and collapse.

  delegate

A delegate to receive state change events.

@property (nonatomic, weak, nullable) id<RBCollapsibleContainerViewDelegate> delegate

Declared In

RBCollapsibleContainerView.h

  handleView

The handle view that can be used to expand and collapse the container view.

@property (nonatomic, nullable) RBCollapsibleContainerHandleView *handleView

Declared In

RBCollapsibleContainerView.h

  view

The child view of the container.

@property (nonatomic, nullable) UIView *view

Declared In

RBCollapsibleContainerView.h

  state

The current state of the container.

@property (nonatomic) RBCollapsibleContainerState state

Declared In

RBCollapsibleContainerView.h

– setState:animated:

Changes the state of the container.

- (void)setState:(RBCollapsibleContainerState)state animated:(BOOL)animated

Parameters

state

The new state of the container to transition to.

animated

Whether the transition should be animated.

Declared In

RBCollapsibleContainerView.h

  viewMargin

The margin to be applied around the child view.

@property (nonatomic) UIEdgeInsets viewMargin

Declared In

RBCollapsibleContainerView.h

  animator

The RBAnimator to use when animating state change transitions.

@property (nonatomic, readonly, nonnull) RBAnimator *animator

Declared In

RBCollapsibleContainerView.h

  shouldUseAnimations

Whether or not layouts should be performed immediately on state changes so that they can be included in parent animations.

@property (nonatomic) BOOL shouldUseAnimations

Declared In

RBCollapsibleContainerView.h

– sizeThatFits:state:

The size that is required to display the container view in the given state.

- (CGSize)sizeThatFits:(CGSize)size state:(RBCollapsibleContainerState)state

Parameters

size

The available size in the container.

state

The state to calculate the size for.

Return Value

The calculated CGSize value.

Declared In

RBCollapsibleContainerView.h