-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathALDrawerViewController.h
More file actions
84 lines (66 loc) · 2.58 KB
/
ALDrawerViewController.h
File metadata and controls
84 lines (66 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//
// ALDrawerViewController.h
//
// Created by Andrew Lister on 2/4/13.
// Copyright (c) 2013 plasticcube. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ALDrawerViewControllerDelegate.h"
/**
* This is the main display in the draw menu - this class handles displaying
* your left and right drawer view controllers and settings the center one.
*
* This class is a parent container view controller that displays its child view
* controllers using the Container View Controller mechanism.
*/
@interface ALDrawerViewController : UIViewController <UIGestureRecognizerDelegate>
/**
Get/Set the view controller for the right drawer.
*/
@property (nonatomic, readwrite) UIViewController *rightViewController;
/**
Get/Set the view controller for the left drawer.
*/
@property (nonatomic, readwrite) UIViewController *leftViewController;
/**
Get the current center view controller.
*/
@property (nonatomic, readonly) UIViewController *centerViewController;
/**
Get/Set the left/right margin that the drawer will open to.
Default 60.f.
*/
@property (nonatomic) float openPadding;
/**
Initializes the the ALDrawerViewController.
@param leftViewController The left view controller. Set to nil for no left hand drawer.
@param rightViewController The right view controller. Set to nil for no right hand drawer.
*/
- (id)initWithLeftViewController:(UIViewController *)leftViewController rightViewController:(UIViewController *)rightViewController;
/**
Sets the center content area view controller to the child view controller passed in.
If the drawer is open it is closed automatically.
@param centerViewControllerController The ViewController to be displayed.
*/
- (void)displayCenterViewController:(UIViewController *)centerViewControllerController;
/**
Sets the center content area view controller to the child view controller passed in.
@param centerViewControllerController The ViewController to be displayed.
@param close Close the drawer after settting the centerViewControllerController.
*/
- (void)displayCenterViewController:(UIViewController *)centerViewControllerController close:(BOOL)close;
/**
Resets the main view to the center closing the drawer.
*/
- (void)close;
/**
Set the right bar button. Set to nil to hide.
@param button New right button to show.
*/
- (void)setRightNavigationDrawerButton:(UIButton *)button;
/**
Set the left bar button. Set to nil to hide.
@param button New left button to show.
*/
- (void)setLeftNavigationDrawerButton:(UIButton *)button;
@end