Inherits from UIViewController
Declared in DTSidePanelController.h

Overview

A container view controller with a main view and one or two optional panels that appear when moving the main view to the left or right side. Having a center panel is mandatory the left and right panels are optional.

If you don’t set the width of the side panels then they auto-resize with the view, keeping a minimum visible portion of the center view always visible. If you set the width then they keep their width and the center view controller will be moved accordingly.

Panels are addressed by the position via the DTSidePanelControllerPanel type.

Properties

centerPanelController

The view controller controlling the center panel

@property (nonatomic, strong) UIViewController *centerPanelController

Declared In

DTSidePanelController.h

leftPanelController

The view controller controlling the panel that appears on the left side below the main view

@property (nonatomic, strong) UIViewController *leftPanelController

Declared In

DTSidePanelController.h

rightPanelController

The view controller controlling the panel that appears on the left side below the main view

@property (nonatomic, strong) UIViewController *rightPanelController

Declared In

DTSidePanelController.h

sidePanelDelegate

@property (nonatomic, DT_WEAK_PROPERTY) id<DTSidePanelControllerDelegate> sidePanelDelegate

Declared In

DTSidePanelController.h

Instance Methods

presentPanel:animated:

Shows the specified panel

- (void)presentPanel:(DTSidePanelControllerPanel)panel animated:(BOOL)animated

Parameters

panel

The DTSidePanelControllerPanel to present

animated

Whether the presentation should be animated

Declared In

DTSidePanelController.h

presentedPanel

Returns the currently panel that is visible for the most part, i.e. that the user is focussing on

- (DTSidePanelControllerPanel)presentedPanel

Declared In

DTSidePanelController.h

setWidth:forPanel:animated:

Sets the display width for the given panel. The center panel is center-aligned, the left panel is left-aligned and the right panel is right-aligned. The center panel is always full width.

- (void)setWidth:(CGFloat)width forPanel:(DTSidePanelControllerPanel)panel animated:(BOOL)animated

Parameters

width

The width to set, or 0 to have the panel resize automatically

panel

The DTSidePanelControllerPanel to set it for

animated

Whether the change should be animated

Declared In

DTSidePanelController.h