DTSidePanelController Class Reference
| 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.
Tasks
Showing Panels
Customizing Appearance
Actions
Properties
-
centerPanelControllerproperty -
leftPanelControllerproperty -
rightPanelControllerproperty -
sidePanelDelegateproperty
Properties
centerPanelController
The view controller controlling the center panel
@property (nonatomic, strong) UIViewController *centerPanelControllerDeclared In
DTSidePanelController.hleftPanelController
The view controller controlling the panel that appears on the left side below the main view
@property (nonatomic, strong) UIViewController *leftPanelControllerDeclared In
DTSidePanelController.hrightPanelController
The view controller controlling the panel that appears on the left side below the main view
@property (nonatomic, strong) UIViewController *rightPanelControllerDeclared In
DTSidePanelController.hInstance Methods
presentPanel:animated:
Shows the specified panel
- (void)presentPanel:(DTSidePanelControllerPanel)panel animated:(BOOL)animatedParameters
- panel
The DTSidePanelControllerPanel to present
- animated
Whether the presentation should be animated
Declared In
DTSidePanelController.hpresentedPanel
Returns the currently panel that is visible for the most part, i.e. that the user is focussing on
- (DTSidePanelControllerPanel)presentedPanelDeclared In
DTSidePanelController.hsetWidth: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)animatedParameters
- 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